Statalist The Stata Listserver


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

Re: st: Re: display of p-value or significance in casewise correlation


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Re: display of p-value or significance in casewise correlation
Date   Tue, 17 Apr 2007 00:05:33 -0500

At 10:23 PM 4/16/2007, Zou Hong wrote:
Dear All,

Does anybody know how to display the p-value or significance casewise correlation coefficient (using "corr")?

I know this can be done using pairwise, but do not know how to do that in using "casewise" option.

Many thanks
Jeo
There is probably a user-written routine that does this. But one way is to do something like

gen touse = !missing(y, x1, x2, x3, x4, x5)
pwcorr y x1 x2 x3 x4 x5 if touse, sig

Also,

reg y x1 x2 x3 x4 x5
pwcorr y x1 x2 x3 x4 x5 if e(sample), sig

Given how internally consistent Stata usually is, I'm surprised the corr and pwcorr options are so different from each other.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

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