Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: how to set marginals for raking in survwgt


From   "Long, Sharon" <SLong@ui.urban.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: how to set marginals for raking in survwgt
Date   Tue, 13 Feb 2007 16:14:27 -0500

Hello,
I'm trying to figure out how to set up the totvars(varlist) part of the
survwgt command for raking my sample using age, race, and gender, where age
takes on 4 values, race takes on 4 values, and gender takes on 2 values. I
think I want to do:

survwgt rake preweigh, by(race gender age) totvars(varlist) generate(newwt)

I can't figure out how to set up the varlist for totvars with the values
for the marginals.  The marginals are 2408 159 238 & 205 for race, 1463 &
1547 for gender, and 485  518 1139 & 868 for age.  

Thanks for any help,
Sharon


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