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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: AW: Saving svy mean estimates? |

Date |
Wed, 8 Apr 2009 09:45:05 +0200 |

<> Rebecca might also want to install the -parmest- package from -ssc-, which would give her a new file with both parameters and standard errors saved, plus the CIs. ************* webuse highschool, clear svyset county [pweight=sampwgt], strata(state) vce(linearized) *Get mean for all students, by sex svy: mean weight, over(sex) capt ssc inst parmest parmest, saving(myfile, replace) u myfile, clear list ************* HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Kanter, Rebecca Gesendet: Mittwoch, 8. April 2009 00:09 An: statalist@hsphsun2.harvard.edu Betreff: st: Saving svy mean estimates? Hi, 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]. Thanks, Rebecca ___________________________________________ 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: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Saving svy mean estimates?***From:*"Kanter, Rebecca" <rkanter@jhsph.edu>

- Prev by Date:
**Re: st: Re: Numeric variable (in Excel) with some string cases: To destring without loosing the text information** - Next by Date:
**AW: st: Saving svy mean estimates?** - Previous by thread:
**RE: st: Saving svy mean estimates?** - Next by thread:
**st: r(198) after -seqlogitdecomp-** - Index(es):

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