Statalist


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

st: RE: calculating p-values from pcorr's returned results


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: calculating p-values from pcorr's returned results
Date   Fri, 4 Dec 2009 09:12:33 -0000

-pcorr- doesn't save in e(), as it is not an estimation command. 

As the help makes explicit, it saves results in r(). 

You'd need to use Stata functions as indicated in the source code for
-pcorr-. So pick up r-class results and use functions such as -tprob()-.
to save explicitly. 

But given an interest in P-values it's about as easy to use the
equivalent -regress- results. 

Nick 
[email protected] 

Miranda Kim

I use stata version 11. I'd like to use pcorr to compute partial 
correlation coefficients over several lists of variables. I'd like to 
use the returned results for this, but I don't know how to generate the 
p-values as these are not saved by Stata. Is there a simple way of 
calculating these using the results saved in e()?

*
*   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