Statalist


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

st: Pearson correlate returned values: corr vs. pwcorr


From   "Grealy, Patrick J" <Patrick.J.Grealy@uth.tmc.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Pearson correlate returned values: corr vs. pwcorr
Date   Thu, 11 Dec 2008 10:38:13 -0600

Hi,
I would like to have the coefficient and significance available as
returned values but both _corr_ and _pwcorr_ seem to come up short. I
can get the coeff returned by _corr_ but not sig. I can get coeff and
sig displayed by pwcorr but not returned as values for programming.
Reluctantly, I am tempted to hack my local version of _pwcorr_ . Is
there an easier way?

Here is a simple demo:
sysuse auto, clear
pwcorr headroom turn, sig
return list
corr headroom turn
return list

Thanks,
Pat Grealy

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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