Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: P-value not saved after -corr-?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: P-value not saved after -corr-?
Date   Fri, 28 Sep 2007 19:23:54 +0100

Another issue affecting P-values is any 
serial or cluster dependence. This is 
likely to be serious for panel data. 
In other words the P-values from any 
procedure that ignores dependence
structure will be way off. 

Nick 
[email protected] 

Nick Cox
 
> First off, consider -pwcorr-. 

[ snip ] 
> 
> Nick 
> [email protected] 
> 
> Michael Lemay
>  
> > I created this dataset of correlations using the following syntax:
> > 
> > foreach x in multi lit alarmr interr secr porchr signr bganyr gphysr
> > betph vand {
> > quietly: corr `x' i_ok if (country==11 | country==18 | country==19)
> > local all "`r(rho)'"
> > quietly: corr `x' i_ok if country==11
> > local gr "`r(rho)'"
> > quietly: corr `x' i_ok if country==18
> > local pt "`r(rho)'"
> > quietly: corr `x' i_ok if country==19
> > local pl "`r(rho)'"
> > post asa_corrtab ("`x'") (`all') (`gr') (`pt') (`pl')
> > }
> > 
> > It works fine for my purpose except that I would like to add the
> > p-value for each correlations to the dataset.  I thought it would be
> > fairly easy to do.  However, -corr- does not save the 
> p-value, unlike
> > other commands such as -tab-.  How would I go about accessing the
> > p-value with -corr-?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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