Statalist


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

st: RE: Pearson correlate returned values: corr vs. pwcorr


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: Pearson correlate returned values: corr vs. pwcorr
Date   Thu, 11 Dec 2008 17:52:18 +0100

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/



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