Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: difference b/w corr and pwcorr


From   "Sarah Edgington" <sedging@ucla.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: difference b/w corr and pwcorr
Date   Tue, 9 Apr 2013 15:17:20 -0700

Wu,
When in doubt, it's always a good idea to consult both help files and the
manual.  The answer wasn't clear to me at all just from the help, but the
manual entry explains the difference pretty clearly.
It has to do with missing data.  -corr- calculates the correlations for the
observations that are non-missing on all the variables in the varlist.
-pwcorr- calculations the correlation for a particular pair of variables,
ignoring the pattern of missing data for all the other variables in the
list.
-Sarah

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Wu Zhang
Sent: Tuesday, April 09, 2013 2:56 PM
To: STATA LIST
Subject: st: difference b/w corr and pwcorr

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index