<?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: Hodges-Lehmann Estimation mystery in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750727#M36500</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Can anybody please explain me why is such a big defference in results with such a small increase?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since I don't have your data, I would imagine that the reason for the difference is that NPAR1WAY does not rely on linearity (like in a linear regression). Duplicates, or very near duplicates where the difference is 0.00001, increase the sum of the ranks in each category, and so its not a 0.00001 change, its a unit change.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jun 2021 22:05:59 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-06-27T22:05:59Z</dc:date>
    <item>
      <title>Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750714#M36499</link>
      <description>&lt;P&gt;I'm conducting a Hodges-Lehmann Estimation with NPAR1WAY Procedure. My data has contains duplicate values so i tried to fix it and conduct exact test with EXACT statement: I added 0.00000001 to each duplicate. Later, I gave up on the idea of an exact test,&amp;nbsp; but&amp;nbsp;I noticed that my results (my purpose is CI) for the procedure are differ.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC NPAR1WAY data=data1 HL;
CLASS treat;
VAR response;
ODS SELECT HodgesLehmann;
RUN;&lt;BR /&gt;PROC NPAR1WAY data=data2 HL;
CLASS treat;
VAR response;
ODS SELECT HodgesLehmann;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Снимок.JPG" style="width: 325px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60789i8D70470129F7227E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Снимок.JPG" alt="Снимок.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I do the same in R, for both sets of data, I get the values (-1.8819 0.0556).&lt;/P&gt;&lt;P&gt;I also used macro for Hodges-Lehmann Estimation which I wrote based on the &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_npar1way_a0000000201.htm" target="_self"&gt;documentation&lt;/A&gt; and also got (-1.8819 0.0556) for both data sets.&lt;/P&gt;&lt;P&gt;Can anybody please explain me why is such a big defference in results with such a small increase?&lt;/P&gt;&lt;P&gt;Is it some nuance in proc npar1way which is triggered if there are no repetitions in the data??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 20:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750714#M36499</guid>
      <dc:creator>bongo</dc:creator>
      <dc:date>2021-06-27T20:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750727#M36500</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Can anybody please explain me why is such a big defference in results with such a small increase?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since I don't have your data, I would imagine that the reason for the difference is that NPAR1WAY does not rely on linearity (like in a linear regression). Duplicates, or very near duplicates where the difference is 0.00001, increase the sum of the ranks in each category, and so its not a 0.00001 change, its a unit change.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 22:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750727#M36500</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-27T22:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750783#M36501</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750783#M36501</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-06-28T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750828#M36502</link>
      <description>&lt;P&gt;Thank you so much for response!&lt;/P&gt;&lt;P&gt;I don't quite understand, but is the sum of ranks used in the calculation of confidence intervals for H-L estimated shift? I mean, we take ranges themselves and values with ranks. And we need sum of ranks to calculate p-value. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In addition, the wilcox.test function&amp;nbsp;in R gives the same results for both data sets, which confuses me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach my files, maybe this will help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750828#M36502</guid>
      <dc:creator>bongo</dc:creator>
      <dc:date>2021-06-28T14:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750832#M36503</link>
      <description>&lt;P&gt;I can't tell you what R is doing, I don't know if it is doing the same things as PROC NPAR1WAY, and sometimes they are not doing the same things, and so different results are not a problem (if only I knew what R is doing, which I don't). Furthermore, there's no reason to believe software A gives the right answer and software B is wrong, without a lot more evidence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NPAR1WAY uses ranks, and sums them to do statistical tests. So changing a variable's value by 0.000001 looks like a tiny change, but the rank changes by 1. Not a tiny change.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750832#M36503</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-28T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750855#M36504</link>
      <description>&lt;P&gt;When I read the documentation for the HL test in NPAR1WAY exact confidence limits there is a bit about "tied" values use a 1/2, for the function of (y,x) values and 1 where y&amp;gt;x. and 0 where y&amp;lt;x. So by adding that small amount you changed the function result for some of your data pairs by 0.5 per pair.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_npar1way_details19.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_npar1way_details19.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Start reading at Exact Confidence Limits&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 16:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750855#M36504</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-28T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750956#M36511</link>
      <description>&lt;P&gt;Like what's already been mentioned, the PROC NPAR1WAY computation takes tied values into account. The difference between the macro results and the NPAR1WAY results for Hodges-Lehmann confidence limits might be due to the computation of Var_0(S), which is the null-hypothesis variance of the Wilcoxon rank sum statistic. The macro might be using the expression for Var_0(S) that's appropriate when there are no ties, while NPAR1WAY uses the more general expression that accounts for ties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For details about how PROC NPAR1WAY computes Var_0(S), see the documentation section&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_014/statug/statug_npar1way_details19.htm" target="_self"&gt;Hodges-Lehmann Estimation&lt;/A&gt;&amp;nbsp;(paragraph 5) and the section&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_014/statug/statug_npar1way_details04.htm" target="_self"&gt;Simple Linear Rank Tests for Two-Sample Data&lt;/A&gt;&amp;nbsp;(last paragraph). The reference is Randles and Wolfe (1979).&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 13:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/750956#M36511</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2021-06-29T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hodges-Lehmann Estimation mystery</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/751151#M36522</link>
      <description>&lt;P&gt;It helps, thank you very much! I managed to get the identical value after adding&amp;nbsp;the ties when calculating the sum of ranks in the macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 09:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hodges-Lehmann-Estimation-mystery/m-p/751151#M36522</guid>
      <dc:creator>bongo</dc:creator>
      <dc:date>2021-06-30T09:11:07Z</dc:date>
    </item>
  </channel>
</rss>

