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

st: question on svymean for subpopulation


From   Chenghui Li <[email protected]>
To   [email protected]
Subject   st: question on svymean for subpopulation
Date   Mon, 6 Dec 2004 12:34:40 -0500 (EST)

Hi,

Could anyone please help me understand the difference between
svymean age, by(female)
and
svymean age  if female=1?

If I use the second command, I sometimes will get the error message about
only one psu. I never have such a problem with the first command. How the
psus and strata are handled using the by() option? And how it is different
from using "if" command? My goal is to estimate average age by gender.
Does the first command assume eaqual size of male and female? Intuitively,
I would use the second one, or think these 2 are the same. I don't
understand why they are different.

THanks in advance for your help.

Chenghui Li


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