<?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 Comparison of medians across three groups in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977890#M49044</link>
    <description>&lt;P&gt;Dear ALL,&lt;/P&gt;&lt;P&gt;I am evaluating Differences in median values between three groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following code:&lt;/P&gt;&lt;P&gt;ODS GRAPHICS ON;&lt;BR /&gt;PROC NPAR1WAY DATA=TTT WILCOXON MEDIAN;&lt;BR /&gt;CLASS PAIS;&lt;BR /&gt;VAR CARGA_VIRAL_QUANT;&lt;BR /&gt;RUN;&lt;BR /&gt;ODS GRAPHICS OFF;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;the sas output showed me the p-value relative to the Kruskal Wallis test (p-value=0.21) and to the Mood's test (p-value=0.02).&lt;/P&gt;&lt;P&gt;It is not clear to me which one to use.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2025 14:27:20 GMT</pubDate>
    <dc:creator>iuri_leite</dc:creator>
    <dc:date>2025-10-27T14:27:20Z</dc:date>
    <item>
      <title>Comparison of medians across three groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977890#M49044</link>
      <description>&lt;P&gt;Dear ALL,&lt;/P&gt;&lt;P&gt;I am evaluating Differences in median values between three groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following code:&lt;/P&gt;&lt;P&gt;ODS GRAPHICS ON;&lt;BR /&gt;PROC NPAR1WAY DATA=TTT WILCOXON MEDIAN;&lt;BR /&gt;CLASS PAIS;&lt;BR /&gt;VAR CARGA_VIRAL_QUANT;&lt;BR /&gt;RUN;&lt;BR /&gt;ODS GRAPHICS OFF;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;the sas output showed me the p-value relative to the Kruskal Wallis test (p-value=0.21) and to the Mood's test (p-value=0.02).&lt;/P&gt;&lt;P&gt;It is not clear to me which one to use.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977890#M49044</guid>
      <dc:creator>iuri_leite</dc:creator>
      <dc:date>2025-10-27T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison of medians across three groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977891#M49045</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no option MOOD in your PROC NPAR1WAY statement. So you have not requested an analysis of Mood scores. Are you sure about having any output based on Mood scores?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have requested an analysis of Wilcoxon scores (WILCOXON option).&lt;BR /&gt;When there are two classification levels (samples), this option produces the Wilcoxon rank-sum test. For any number of classification levels, this option produces the Kruskal-Wallis test.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mood's Median Test&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is particularly useful when there are significant outliers, as it is less sensitive to them than the Kruskal-Wallis test.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 15:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977891#M49045</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2025-10-27T15:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison of medians across three groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977968#M49048</link>
      <description>&lt;P&gt;proc npar1way is only suited for TWO group , and have LOW power of model.&lt;/P&gt;
&lt;P&gt;If you need to compare THREE groups, I suggested to use PROC QUANTREG.&lt;/P&gt;
&lt;P&gt;Check&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&amp;nbsp; blogs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/22/difference-of-medians-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/22/difference-of-medians-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/06/03/difference-between-percentiles.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/06/03/difference-between-percentiles.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/08/13/quantile-regression-chess-ratings.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/08/13/quantile-regression-chess-ratings.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc quantreg data=Sashelp.Heart(obs=1000);
   class bp_status;
   model weight = bp_status / quantile=0.5;
   estimate 'High VS Normal' bp_status 1 -1 0/ CL;
   estimate 'High VS Optimal' bp_status 1 0 -1/ CL;
   estimate 'Normal VS Optimal' bp_status 0 1 -1 / CL;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1761620059626.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111020i289FA6A8B66F8535/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1761620059626.png" alt="Ksharp_0-1761620059626.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 02:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977968#M49048</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-10-28T02:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison of medians across three groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977969#M49049</link>
      <description>By the way, if you have three groups ,   Kruskal Wallis test  lead to the non-parameter version of ANOVA .&lt;BR /&gt;&lt;BR /&gt;If you have two groups, you should check this:&lt;BR /&gt;Median Two-Sample Test &lt;BR /&gt;Statistic Z Pr &amp;gt; Z Pr &amp;gt; |Z| &lt;BR /&gt;1717.000 30.8702 &amp;lt;.0001 &amp;lt;.0001 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2025 03:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-of-medians-across-three-groups/m-p/977969#M49049</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-10-28T03:08:47Z</dc:date>
    </item>
  </channel>
</rss>

