<?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: Compare two distribution of correlation coefficient in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33989#M1397</link>
    <description>It looks like you are perform t-test by useing correlation coefficient statistic estimator ?&lt;BR /&gt;
If it is, you do not need to calculate the correlation coefficient separately.&lt;BR /&gt;
proc ttest has do it for you automatically.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Tue, 22 Mar 2011 03:21:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-03-22T03:21:16Z</dc:date>
    <item>
      <title>Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33988#M1396</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I would compare two distributions of correlation coefficient A and B (two sample of correlation coefficients). I want to know if B came from the same population as A. A and B are not independent. (so KS test not applicable)&lt;BR /&gt;
&lt;BR /&gt;
How can I do this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
best regards,</description>
      <pubDate>Mon, 21 Mar 2011 12:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33988#M1396</guid>
      <dc:creator>nadra</dc:creator>
      <dc:date>2011-03-21T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33989#M1397</link>
      <description>It looks like you are perform t-test by useing correlation coefficient statistic estimator ?&lt;BR /&gt;
If it is, you do not need to calculate the correlation coefficient separately.&lt;BR /&gt;
proc ttest has do it for you automatically.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Tue, 22 Mar 2011 03:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33989#M1397</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-22T03:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33990#M1398</link>
      <description>&amp;gt; It looks like you are perform t-test by useing&lt;BR /&gt;
&amp;gt; correlation coefficient statistic estimator ?&lt;BR /&gt;
&amp;gt; If it is, you do not need to calculate the&lt;BR /&gt;
&amp;gt; correlation coefficient separately.&lt;BR /&gt;
&amp;gt; proc ttest has do it for you automatically.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Ksharp&lt;BR /&gt;
&lt;BR /&gt;
Hi  Ksharp, thanks for answering!&lt;BR /&gt;
&lt;BR /&gt;
A ttest will be based only on mean comparison, so it is not my objective. I want to compare a distribution of correlation coefficient to another one  distribution of coorelation coefficient . &lt;BR /&gt;
&lt;BR /&gt;
Say if A is a distribution of (1000) correlation coefficient obtained from corrlation between average scores on a population N and B another distribution of (1000) correlation coefficient obtained from correlation between average scores on a population n (nЄN).&lt;BR /&gt;
&lt;BR /&gt;
a ttest reject the equality of A and B even if mean A =0.98 and mean B= 0.97?!!&lt;BR /&gt;
&lt;BR /&gt;
nadra</description>
      <pubDate>Tue, 22 Mar 2011 09:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33990#M1398</guid>
      <dc:creator>nadra</dc:creator>
      <dc:date>2011-03-22T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33991#M1399</link>
      <description>Hello Nadra,&lt;BR /&gt;
&lt;BR /&gt;
I still do not understand why you can not use KS. A null hypothesis for KS is that both samples are drawn from the same distribution. Is not it your purpose?&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Tue, 22 Mar 2011 13:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33991#M1399</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-03-22T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33992#M1400</link>
      <description>Hi.&lt;BR /&gt;
How about Wilcox Rank Sum test ? It is assuming A and B both from the same distribution. And it is non-parameter method , which is much robust.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 23 Mar 2011 03:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33992#M1400</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-23T03:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33993#M1401</link>
      <description>&amp;gt; Hello Nadra,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I still do not understand why you can not use KS. A&lt;BR /&gt;
&amp;gt; null hypothesis for KS is that both samples are drawn&lt;BR /&gt;
&amp;gt; from the same distribution. Is not it your purpose?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Sincerely,&lt;BR /&gt;
&amp;gt; SPR&lt;BR /&gt;
&lt;BR /&gt;
Hi, &lt;BR /&gt;
&lt;BR /&gt;
Indeed, my purpose is is that both samples are drawn from the same distribution but KS assumption suppose that A and B are independent which is not the case here&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 23 Mar 2011 14:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33993#M1401</guid>
      <dc:creator>nadra</dc:creator>
      <dc:date>2011-03-23T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33994#M1402</link>
      <description>&amp;gt; Hi.&lt;BR /&gt;
&amp;gt; How about Wilcox Rank Sum test ? It is assuming A and&lt;BR /&gt;
&amp;gt; B both from the same distribution. And it is&lt;BR /&gt;
&amp;gt; non-parameter method , which is much robust.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Ksharp&lt;BR /&gt;
&lt;BR /&gt;
Hi, &lt;BR /&gt;
&lt;BR /&gt;
I used the test also but what I see is that these tests are very sensitive. As I mentionned above even if the two distribution have the same shapes, same means, the test tend to reject the hypothesis of the equality if the two distribution.&lt;BR /&gt;
&lt;BR /&gt;
Does a quantile test exists? something that compares paired quantiles ? &lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Wed, 23 Mar 2011 14:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33994#M1402</guid>
      <dc:creator>nadra</dc:creator>
      <dc:date>2011-03-23T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33995#M1403</link>
      <description>Hi.&lt;BR /&gt;
If you want to compare paired quantiles.&lt;BR /&gt;
You can make another 'difference' variable ( dif = A -B ),then test  whether its mean equal zero.&lt;BR /&gt;
But I am not quit sure this method's power, since you want some exact distribution test.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 24 Mar 2011 04:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33995#M1403</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-24T04:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two distribution of correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33996#M1404</link>
      <description>You can use the GLIMMIX procedure to test hypotheses about correlations in dependent data.  Below is code to generate variables Y1, Y2, and Y3 with a specified correlation structure.  After generating the data, PROC CORR is run to show that the specified correlation structure was actually generated.  The data are then written in a form suitable for the GLIMMIX procedure and then the GLIMMIX procedure is invoked with a COVTEST statement to test equality of two of the correlations.&lt;BR /&gt;
&lt;BR /&gt;
/***********************************/&lt;BR /&gt;
/* Construct variables Y1, Y2, Y3  */&lt;BR /&gt;
/* which have covariance structure */&lt;BR /&gt;
/*                                 */&lt;BR /&gt;
/*         1   rho12   rho13       */&lt;BR /&gt;
/*     rho12       1   rho23       */&lt;BR /&gt;
/*     rho13   rho23       1       */&lt;BR /&gt;
/***********************************/&lt;BR /&gt;
data test;&lt;BR /&gt;
 &amp;nbsp; rho12 = 0.6;&lt;BR /&gt;
 &amp;nbsp; rho13 = 0.6;&lt;BR /&gt;
 &amp;nbsp; rho23 = 0.3;&lt;BR /&gt;
 &amp;nbsp; a11 = 1;&lt;BR /&gt;
 &amp;nbsp; a21 = rho12;&lt;BR /&gt;
 &amp;nbsp; a31 = rho13;&lt;BR /&gt;
 &amp;nbsp; a22 = sqrt(1 - a21**2);&lt;BR /&gt;
 &amp;nbsp; a32 = (rho23 - a31*a21)/a22;&lt;BR /&gt;
 &amp;nbsp; a33 = sqrt(1 - a31**2 - a32**2);&lt;BR /&gt;
 &amp;nbsp; do subject=1 to 10000;&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; x1 = rannor(1234579);&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; x2 = rannor(1234579);&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; x3 = rannor(1234579);&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; y1 = a11*x1;&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; y2 = a21*x1 + a22*x2;&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; y3 = a31*x1 + a32*x2 + a33*x3;&lt;BR /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; output;&lt;BR /&gt;
 &amp;nbsp; end;&lt;BR /&gt;
 &amp;nbsp; drop rho: a: x:;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/* Compute correlations between Ys */&lt;BR /&gt;
proc corr data=test;&lt;BR /&gt;
 &amp;nbsp; var y:;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/* Write the data in long form  */&lt;BR /&gt;
/* for use in GLIMMIX procedure */&lt;BR /&gt;
data test_long;&lt;BR /&gt;
 &amp;nbsp; set test;&lt;BR /&gt;
 &amp;nbsp; y = y1;  response=1;  output;&lt;BR /&gt;
 &amp;nbsp; y = y2;  response=2;  output;&lt;BR /&gt;
 &amp;nbsp; y = y3;  response=3;  output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/* Obtain correlations using the GLIMMIX procedure */&lt;BR /&gt;
/* and test whether the rho12=rho13.               */&lt;BR /&gt;
proc glimmix data=test_long;&lt;BR /&gt;
 &amp;nbsp; class subject response;&lt;BR /&gt;
 &amp;nbsp; model y =;&lt;BR /&gt;
 &amp;nbsp; random response / subject=subject residual type=unr;&lt;BR /&gt;
 &amp;nbsp; covtest general 0 0 0 -1 1 0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Feel free to modify the code to change the correlations.  You might also want to change the sample size.  I used a very large sample size to demonstrate that the assumed correlations were actually generated.</description>
      <pubDate>Thu, 24 Mar 2011 20:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-two-distribution-of-correlation-coefficient/m-p/33996#M1404</guid>
      <dc:creator>Dale</dc:creator>
      <dc:date>2011-03-24T20:09:40Z</dc:date>
    </item>
  </channel>
</rss>

