Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: difference b/w corr and pwcorr


From   David Hoaglin <[email protected]>
To   [email protected]
Subject   Re: st: difference b/w corr and pwcorr
Date   Wed, 10 Apr 2013 08:05:15 -0400

To Maarten's explanation, I would add that some analyses start with a
correlation matrix and that correlation matrices have certain
properties (e.g., they are nonnegative-definite or, preferably,
positive-definite).  You could use -pwcorr- to calculate the
correlation of each pair of variables and then assemble those
correlations as a matrix; but if the pairwise correlations are not
based on the same sample (as -corr- would enforce), that matrix may
not be a "correlation matrix."

David Hoaglin

On Wed, Apr 10, 2013 at 1:13 AM, Wu Zhang <[email protected]> wrote:
> Right; but I do find it produces different  estimates than corr does. I am confused.
>
>
>
> ----- Original Message -----
> From: Alan Acock <[email protected]>
> To: "[email protected]" <[email protected]>
> Cc: STATA LIST <[email protected]>
> Sent: Tuesday, April 9, 2013 10:43 PM
> Subject: Re: st: difference b/w corr and pwcorr
>
> Wu,
> The pwcorr command has more options like sig for sifpgn. Tests.
>
> Sent from my iPad
>
> On Apr 9, 2013, at 2:56 PM, Wu Zhang <[email protected]> wrote:
>
>> Hi folks,
>>
>>      I wanna know the difference between correlation and pairwise correlation: very confusing, for some varlist, they are the same; while different for other varlist. Could you guys help me out?
>>
>> Thanks,
>>
>> Wu
>>
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *  http://www.stata.com/help.cgi?search
> *  http://www.stata.com/support/faqs/resources/statalist-faq/
> *  http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index