<?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: difference between two medians - 95% CI in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/566269#M27893</link>
    <description>&lt;P&gt;It would take many pages to provide a complete answer to your question. Briefly,&lt;/P&gt;
&lt;P&gt;- The H-L estimate is robust to extreme values b/c it is based on robust statistics.&lt;/P&gt;
&lt;P&gt;- The CI for H-L is computed based on the asymptotic distribution of the H-L statistic under the null hypothesis (no difference between group locations)&lt;/P&gt;
&lt;P&gt;- The bootstrap estimate is based on assuming that the population is well-represented by the sample. If your sample is small, contains rounded values, or contains a disproportional number of unusual observations, it might not be representative.&lt;/P&gt;
&lt;P&gt;- In particular, a bootstrap analysis that involves &lt;A href="https://blogs.sas.com/content/iml/2016/08/17/smooth-bootstrap-sas.html" target="_self"&gt;medians of rounded values can lead to situations where the bootstrap distribution is not a good approximation&lt;/A&gt; to the actual distribution of the statistic. In those cases, you might need to use the smooth bootstrap.&lt;/P&gt;
&lt;P&gt;- The bootstrap process gives you the approximate distribution of the statistic for the sample sizes w/o using any asymptotics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you choose to pursue bootstrapping, the answer should be close to the H-L estimates, so you have some basis for deciding whether your bootstrap analysis is correct. As for coding, you can start by reading &lt;A href="https://blogs.sas.com/content/iml/2018/12/12/essential-guide-bootstrapping-sas.html" target="_self"&gt;"The Essential Guide to Bootstrapping in SAS,"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although your advisor said to use bootstrapping, I think this problem is actually a "permutation test" rather than a bootstrap problem. You can see the article &lt;A href="https://blogs.sas.com/content/iml/2014/11/21/resampling-in-sas.html" target="_self"&gt;"Resampling and permutation tests in SAS,"&lt;/A&gt; which computes a permutation test for the mean-difference problem. If you have SAS/IML, you can replace each call to the MEAN function with a call to the MEDIAN function.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 19:13:19 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-06-14T19:13:19Z</dc:date>
    <item>
      <title>difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322645#M17056</link>
      <description>&lt;P&gt;how can I get the 95% confidence interval for the difference between two medians?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322645#M17056</guid>
      <dc:creator>msecic</dc:creator>
      <dc:date>2017-01-05T12:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322647#M17057</link>
      <description>&lt;P&gt;The NPAR1WAY procedure uses nonparametric tests to compare independent distributions. You can use the WILCOXON option to test for difference in location and use the MEDIAN option to requests the median test for difference. &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_npar1way_examples01.htm" target="_self"&gt;An example is provided in the documentation of PROC NPAR1WAY.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322647#M17057</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-05T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322649#M17058</link>
      <description>&lt;P&gt;yes, but it does not provide the 95% confidence interval for the difference between the two medians. &amp;nbsp;do you know how to get that?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322649#M17058</guid>
      <dc:creator>msecic</dc:creator>
      <dc:date>2017-01-05T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322655#M17061</link>
      <description>&lt;P&gt;Are you looking for Hodges-Lehmann Estimation?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_npar1way_examples04.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_npar1way_examples04.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322655#M17061</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-01-05T13:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322656#M17062</link>
      <description>&lt;P&gt;No, that is for paired. &amp;nbsp;My scenario is for unpaired.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322656#M17062</guid>
      <dc:creator>msecic</dc:creator>
      <dc:date>2017-01-05T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322661#M17063</link>
      <description>&lt;P&gt;Isn't odd to use the 95% CI for medians? Isn't the IQR or a different non parametric estimate used instead?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322661#M17063</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-05T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322662#M17064</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1922"&gt;@msecic&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;No, that is for paired. &amp;nbsp;My scenario is for unpaired.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Look again.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 14:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/322662#M17064</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-01-05T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/566248#M27892</link>
      <description>&lt;P&gt;When I look at this output, am I to understand that the location shift represents the median difference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone comment on the relative merit of the Hodges-Lehmann approach vs bootstrapping. I was advised to use bootstrapping. is there a coding model I could use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/566248#M27892</guid>
      <dc:creator>GMartel</dc:creator>
      <dc:date>2019-06-14T17:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/566269#M27893</link>
      <description>&lt;P&gt;It would take many pages to provide a complete answer to your question. Briefly,&lt;/P&gt;
&lt;P&gt;- The H-L estimate is robust to extreme values b/c it is based on robust statistics.&lt;/P&gt;
&lt;P&gt;- The CI for H-L is computed based on the asymptotic distribution of the H-L statistic under the null hypothesis (no difference between group locations)&lt;/P&gt;
&lt;P&gt;- The bootstrap estimate is based on assuming that the population is well-represented by the sample. If your sample is small, contains rounded values, or contains a disproportional number of unusual observations, it might not be representative.&lt;/P&gt;
&lt;P&gt;- In particular, a bootstrap analysis that involves &lt;A href="https://blogs.sas.com/content/iml/2016/08/17/smooth-bootstrap-sas.html" target="_self"&gt;medians of rounded values can lead to situations where the bootstrap distribution is not a good approximation&lt;/A&gt; to the actual distribution of the statistic. In those cases, you might need to use the smooth bootstrap.&lt;/P&gt;
&lt;P&gt;- The bootstrap process gives you the approximate distribution of the statistic for the sample sizes w/o using any asymptotics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you choose to pursue bootstrapping, the answer should be close to the H-L estimates, so you have some basis for deciding whether your bootstrap analysis is correct. As for coding, you can start by reading &lt;A href="https://blogs.sas.com/content/iml/2018/12/12/essential-guide-bootstrapping-sas.html" target="_self"&gt;"The Essential Guide to Bootstrapping in SAS,"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although your advisor said to use bootstrapping, I think this problem is actually a "permutation test" rather than a bootstrap problem. You can see the article &lt;A href="https://blogs.sas.com/content/iml/2014/11/21/resampling-in-sas.html" target="_self"&gt;"Resampling and permutation tests in SAS,"&lt;/A&gt; which computes a permutation test for the mean-difference problem. If you have SAS/IML, you can replace each call to the MEAN function with a call to the MEDIAN function.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 19:13:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/566269#M27893</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-14T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two medians - 95% CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/573729#M28212</link>
      <description>&lt;P&gt;This was very helpful thank you. I have also looked into using quantile regression. I have examined the dataset using HL, bootstrapping and quantile regression. The findings are essentially the same with each approach.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 02:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/difference-between-two-medians-95-CI/m-p/573729#M28212</guid>
      <dc:creator>GMartel</dc:creator>
      <dc:date>2019-07-16T02:57:05Z</dc:date>
    </item>
  </channel>
</rss>

