<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Test for median difference in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-median-difference/m-p/890494#M44127</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am running a test for median differences among three countries:&lt;/P&gt;&lt;P&gt;ODS GRAPHICS ON;&lt;BR /&gt;PROC NPAR1WAY WILCOXON MEDIAN;&lt;BR /&gt;CLASS Country;&lt;BR /&gt;VAR time;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the results I do not get the results for Median two-way&amp;nbsp; analysis, but for Median one-way analysis.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;Median One-Way AnalysisChi-Square DF Pr&amp;nbsp;&amp;gt;&amp;nbsp;ChiSq&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone tel me how a can obtain the Median Two-way results?&lt;/P&gt;&lt;P&gt;Best regards;&lt;/P&gt;&lt;P&gt;Iuri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 22:43:48 GMT</pubDate>
    <dc:creator>iuri_leite</dc:creator>
    <dc:date>2023-08-22T22:43:48Z</dc:date>
    <item>
      <title>Test for median difference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-median-difference/m-p/890494#M44127</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am running a test for median differences among three countries:&lt;/P&gt;&lt;P&gt;ODS GRAPHICS ON;&lt;BR /&gt;PROC NPAR1WAY WILCOXON MEDIAN;&lt;BR /&gt;CLASS Country;&lt;BR /&gt;VAR time;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the results I do not get the results for Median two-way&amp;nbsp; analysis, but for Median one-way analysis.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;Median One-Way AnalysisChi-Square DF Pr&amp;nbsp;&amp;gt;&amp;nbsp;ChiSq&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone tel me how a can obtain the Median Two-way results?&lt;/P&gt;&lt;P&gt;Best regards;&lt;/P&gt;&lt;P&gt;Iuri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 22:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-median-difference/m-p/890494#M44127</guid>
      <dc:creator>iuri_leite</dc:creator>
      <dc:date>2023-08-22T22:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Test for median difference</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-median-difference/m-p/890497#M44128</link>
      <description>&lt;P&gt;Are you sure the data used was the correct set? Your code did not show a Data= so the last data set created would be the default set used by the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation of the option:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.npar1way.np1proc" class="AAsection"&gt;
&lt;DIV class="AAoptions"&gt;
&lt;DL class="AAoptions"&gt;
&lt;DT&gt;&lt;SPAN class=" AAterm "&gt; WILCOXON &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;requests an analysis of Wilcoxon scores. When there are two &lt;A class="indexterm" name="statug.npar1way.a0000000094" target="_blank"&gt;&lt;/A&gt; &lt;A class="indexterm" name="statug.npar1way.a0000000095" target="_blank"&gt;&lt;/A&gt; classification levels (samples), this option produces the Wilcoxon rank-sum test.&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt; For any number of classification levels&lt;/STRONG&gt;&lt;/FONT&gt;, this option produces the Kruskal-Wallis test.&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since your data has 3 levels of the class variable then output should be from the Kruskal-Wallis test which is a test for equality of means (medians) across all of the classes. That should have appeared under the "Wilcoxon Scores" table in the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If by "Median Two-way results" you mean the results comparing 2 levels of the class variable then you need to subset your data to 2 levels (3 sets of tests) which will raise some concerns about repeated tests from the same data. The "Median Two Sample Test" table will only appear with exactly two levels of the class variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 00:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-median-difference/m-p/890497#M44128</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-23T00:07:28Z</dc:date>
    </item>
  </channel>
</rss>

