<?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: Kendall's Tau-b exact p-values from Proc Freq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215476#M11659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;n=7 is certainly to small for the ChiSq value or any asymptotic result, but this is the Exact test based on the permutation distribution. The answer for the p-value should be 2/(7!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 14:00:29 GMT</pubDate>
    <dc:creator>DMohr</dc:creator>
    <dc:date>2015-04-03T14:00:29Z</dc:date>
    <item>
      <title>Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215474#M11657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &lt;BR /&gt;My nonparametric students and I stumbled on a small example (n=7) of a data set where Spearman's and Kendall's Tau-b come out to be perfectly 1.0, which is correct because the data show a perfect monotonic relationship. But the p-value from Proc Freq's Exact test for Kendall's also printed a p-value of 1.00, which doesn't make sense - the probability of a perfect monotonic ordering just by chance is small. There are no ties in the data. Is there something odd happening in the p-value for Kendall's using the exact algorithm?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 20:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215474#M11657</guid>
      <dc:creator>DMohr</dc:creator>
      <dc:date>2015-04-02T20:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215475#M11658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OBS=7 ? That is too small, I guess there must be 0 in some cells ? I would drop it and not test it by proc freq&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; which doesn't make sense - the probability of a perfect monotonic ordering just by chance is small."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;That doesn't make any sense . Statistical test is based on some statistical distribution like Normal , Chisq .... (Bays estimation is another question) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Your data is so small which means your H0's Chisq Value is so small , so there are almost all the Chisq greater than H0's Chisq (i.e. P=1) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 13:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215475#M11658</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-03T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215476#M11659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;n=7 is certainly to small for the ChiSq value or any asymptotic result, but this is the Exact test based on the permutation distribution. The answer for the p-value should be 2/(7!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215476#M11659</guid>
      <dc:creator>DMohr</dc:creator>
      <dc:date>2015-04-03T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215477#M11660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DMohr is right. One can definitely do an exact test with n=7 (or smaller). I even have a table of tabulated exact p values for a wide range of small n values for this statistic. p should be almost 0. I was first thinking that you are looking at a one-sided statistic, for the probability of finding a correlation smaller than 1 (which would give p ~ 1). The probability of finding a larger correlation would then be one minus the displayed p (what you are really interested in). The output does look like you are getting this left-sided p. However, FREQ also gives the two-sided p-value as 1.&amp;nbsp; I have never used PROC FREQ for exact tests, so I have not read the documentation. Perhaps others can comment. I am guessing that the 'exact' algorithm has a problem with this correlation and small n (but one typically only wants the exact p value when n is small). Interestingly, the exact statement seems to work fine for the Spearman correlation More interestingly, for Spearman, the displayed one-side p is listed as "Pr&lt;STRONG&gt; &amp;gt;&lt;/STRONG&gt;=r"; but for Kendall tau, it is "Pr &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;= t". This supports my claim that you are getting the "other" side alternative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215477#M11660</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-04-03T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215478#M11661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I noticed that switch in the labeling also. It's as if, in this one odd-ball case, the algorithm is picking the wrong side of the distribution for the calculation of the p-value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215478#M11661</guid>
      <dc:creator>DMohr</dc:creator>
      <dc:date>2015-04-03T14:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215479#M11662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interestingly, if you did not have a perfect monotonic relationship, the exact result is for "Pr &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;=t" for Kendall tau (the desired direction). It only switches sides when t=1. Maybe you can find something in the documentation about that. If not, it might be worth a message to Technical Support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215479#M11662</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-04-03T14:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215480#M11663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right - all the previous examples it worked fine. It's only this oddball case. I will send a message on to Technical Support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 15:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215480#M11663</guid>
      <dc:creator>DMohr</dc:creator>
      <dc:date>2015-04-03T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215481#M11664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you get a good explanation from Tech Support about the switched side of the test, please let us all know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 19:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215481#M11664</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-04-04T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kendall's Tau-b exact p-values from Proc Freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215482#M11665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what we got back from SAS Technical Support. Hurray, one tiny little speck of mortar added to the brick wall of science.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi&lt;BR /&gt;Donna:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN style="font-size: 10pt;"&gt;This&lt;BR /&gt;does appear to be a defect in FREQ.&amp;nbsp; In this particular case (where tauB=1&lt;BR /&gt;and ASE=0), PRO FREQ displays the one-sided p-value as the left-sided p-value&lt;BR /&gt;(Pr &amp;lt;= t), which is indeed 1 when tauB=1 (obviously, because the range of&lt;BR /&gt;tauB is between -1 and 1). But PROC FREQ should display the right-sided p-value&lt;BR /&gt;(Pr &amp;gt;= t) when t &amp;gt; 0. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN style="font-size: 10pt;"&gt;A work-around to get the value of (Pr &amp;gt;= t) for this example is to specify the&lt;BR /&gt;POINT option in the EXACT statement. In this example where tauB=1, (Pr &amp;gt;= t)&lt;BR /&gt;= (Pr = t), which means that the one-sided p-value (Pr &amp;gt;=t) is identical to&lt;BR /&gt;the point probability (Pr = t).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank&amp;nbsp; you for bringing this to our attention.&amp;nbsp; I will make sure that it gets&lt;BR /&gt;fixed. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 16:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kendall-s-Tau-b-exact-p-values-from-Proc-Freq/m-p/215482#M11665</guid>
      <dc:creator>DMohr</dc:creator>
      <dc:date>2015-04-08T16:58:21Z</dc:date>
    </item>
  </channel>
</rss>

