[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Saving svy mean estimates?

From   "Kanter, Rebecca" <>
To   "" <>
Subject   st: Saving svy mean estimates?
Date   Tue, 7 Apr 2009 18:08:40 -0400


I am using the svy mean command to calculate survey weighted state-specific mean estimates of different Mexican state characteristics, for example the percent of the population in a specific Mexican state that is indigenous

Thus, I use the following command line: svy: mean indigena, over(state)

And want to save these mean estimates (by state) as I would if I did an by state, sort: egen mean(indigena)--that was not accounting for the survey design; so my question is, how do I save the mean estimates by state from the above svy command line: svy: mean indigena, over(ent)??  And/or how do i save mean estimates for this that does take the svy pweight into account in the proper manner (if I can't do it with svy: mean)? [I want to then drop people from my dataset but want to have all the state estimates of characteristics saved as variables before doing so].


Rebecca M. Kanter
PhD Candidate
Johns Hopkins Bloomberg School of Public Health
Department of International Health
Center for Human Nutrition

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index