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

Re: st: Using weights for Pearson correlations


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Using weights for Pearson correlations
Date   Sun, 24 Jul 2005 19:13:44 -0500

At 07:00 PM 7/24/2005 -0500, Mosi A. Ifatunji wrote:
All,

How do I use weights when conducting Pearson correlations? I have tried
placing the weight syntax in three places:

pwcorr x1 x2 x3 [pw=weight], if....
See -help pwcorr- . The above comes closest but the -if- clause needs to come before the comma, i.e.

pwcorr x1 x2 x3 [pw=weight] if.... ,

HOWEVER, according to the help, only aweights and fweights are allowed, not pweights; so you may have to go to a plan B here. Maybe there is another routine that does what you want, or maybe it can be done with the svy commands; I don't know. Or, maybe you can just get by with using aweights, especially if you are not worried about significance tests.


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

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