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]

st: RE: difference b/w corr and pwcorr


From   "Sarah Edgington" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index