Line for the server...
Official Stata does not seem to provide this functionality (which is a
little weird). -h pwcorr- seems to acknowledge the problem with the returned
values towards the end.
So a hack seems possible, from what I observe when I set the -trace- on.
This FAQ points to another approach:
http://www.stata.com/support/faqs/stat/survey.html
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Grealy, Patrick J
Sent: Thursday, December 11, 2008 5:38 PM
To: [email protected]
Subject: st: Pearson correlate returned values: corr vs. pwcorr
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/
*
* 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/