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/