<?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 Re: Median difference using MannU and quantile regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/848979#M42050</link>
    <description>&lt;P&gt;For experts who are wondering why PROC QUANTREG is being used, the OP appears to be using information and sample code from the blog post &lt;A href="https://blogs.sas.com/content/iml/2017/02/22/difference-of-medians-sas.html" target="_self"&gt;"Quantile estimates and the difference of medians in SAS."&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2022 12:04:04 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-12-11T12:04:04Z</dc:date>
    <item>
      <title>Median difference using MannU and quantile regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/848927#M42048</link>
      <description>&lt;P&gt;Hi, I am looking to determine whether two medians are not equal and attempt to estimate the median difference between the two. From my research, I have found this can be done by performing the Wilcoxon Mann u test and quantile regression. However, I am confused on interrupting the for results each. Below if my data, code for both, results, and interpretation.&lt;BR /&gt;&lt;BR /&gt;I think I am in the right direction but: Having trouble with the median difference estimate interpretation as well as understanding why the discrepancy in significance results.&lt;BR /&gt;&lt;BR /&gt;Happy to clarify anything that may have been unclear and appreciate the support.&lt;BR /&gt;&lt;BR /&gt;Mann U (npar1way) median a median b median diff pval (kruskalW) hodgeL&lt;BR /&gt;Interpretation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 601&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 642&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 41&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.01 issue getting to load&lt;BR /&gt;Median A and Median B are considered to be significantly different (difference=41, p&amp;lt;.05) as determined by the mannU test&lt;BR /&gt;Quantile regression median a median b median diff&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pval&lt;BR /&gt;Interpretation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;601&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 642&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;34 (-74 - 143.78)&amp;nbsp; &amp;nbsp; &amp;nbsp;0.524&lt;BR /&gt;Median A and Median B are not considered to be significantly different (difference= 34.5 (-74.7 - 143.78), p=.52) as determined by quantile regression&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;*Determine medians of the two groups;
proc means data=test_data median; 
	var y; 
	class x; 
run; 
*Perform W-Mann-U test using KW for results;
*HL for median difference not loading, useful?;
proc npar1way data=test wilcoxon median; 
	class x;
	var y;
	exact hl / maxtime=60; 
run;
*Quantile regression to determine median difference estimate and signifiance difference;
proc quantreg data=test_data; 
	class x;
	model y= x/ quantile=.5;
	estimate x 1 -1 /CL;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 19:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/848927#M42048</guid>
      <dc:creator>Levi_M</dc:creator>
      <dc:date>2022-12-10T19:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Median difference using MannU and quantile regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/848979#M42050</link>
      <description>&lt;P&gt;For experts who are wondering why PROC QUANTREG is being used, the OP appears to be using information and sample code from the blog post &lt;A href="https://blogs.sas.com/content/iml/2017/02/22/difference-of-medians-sas.html" target="_self"&gt;"Quantile estimates and the difference of medians in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 12:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/848979#M42050</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-12-11T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Median difference using MannU and quantile regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/849972#M42078</link>
      <description>&lt;P&gt;The null hypothesis of Kruskal-Wallis test and Wilcoxon rank sum test is the mean ranks of two groups are the same, not the medians of two groups are equal. When the distributions of two samples are different, even they have equal median or mean, the two tests can still reject the null hypothesis, and conclude the two distributions are significantly different. So if you want to compare medians, the quantile regression or the CI of medians can be used as the link described given by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;Sorry I don't know much about&amp;nbsp;&lt;SPAN&gt;Hodges-Lehmann CI of median, so cannot answer why the results from EXACT HL is different from the results of PROC QUANTREG.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 22:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Median-difference-using-MannU-and-quantile-regression/m-p/849972#M42078</guid>
      <dc:creator>RosieSAS</dc:creator>
      <dc:date>2022-12-15T22:32:20Z</dc:date>
    </item>
  </channel>
</rss>

