Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Calculating p-values for listwise Pearson correlation coefficients


From   Richard Williams <Richard.A.Williams.5@nd.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Calculating p-values for listwise Pearson correlation coefficients
Date   Sat, 12 Feb 2005 23:00:14 -0500

At 08:08 PM 2/12/2005 -0600, Mosi A. Ifatunji wrote:
All,

My question is, How do I get Stata to report p-values for listwise (not pairwise) correlation coefficients?

At present I can get p-values for pairwise correlation coefficients when using the pwcorr command, but I cannot get p-values when using the correlate command for listwise correlations.

Please advise.
Restrict -pwcorr- to the cases with complete data, e.g.

pwcorr x1 x2 x3 x4 if !missing(x1, x2, x3, x4), sig

It does seem odd to me that -pwcorr- and -corr- do not offer the same options. If I was writing such a routine from scratch I'd probably write a single corr command that had a lot of options, one of which was pairwise deletion.

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index