Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Creating weights for direct standardization


From   "Kanter, Rebecca" <rkanter@jhsph.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Creating weights for direct standardization
Date   Tue, 5 Mar 2013 10:39:10 -0500

Hi,

I am using the command: 

egen repwt = total(sampleweight) if year==1995 & ktagChild==1, by(age)

where sample weight is equal to the survey (svy) weight.

Yes, I have read pp 28-31 of [SVY], thanks. The problem is this presumes that you have a weight to enter into the stdweight() of the stdize command, but does not explain ways to also calculate that stdweight variable.

Thank you for your help and time, I really appreciate it.

Cheers,
Rebecca

Rebecca Kanter <rkanter@jhsph.edu>:
What command are you using?
Have you read pp 28-31 of [SVY] yet?

On Tue, Mar 5, 2013 at 9:20 AM, Kanter, Rebecca <rkanter@jhsph.edu> wrote:
> Dear list,
> I am trying to age-standardize my data (across four different survey time points) based on the direct standardization method (using the first survey year as a base).
> I am trying to figure out how to thus create the proper weights for the stdize command.
> Is it correct to create these weights based on summing (taking the total) of the survey (svy) weights for each year of age for the first survey year (and then apply them to the other survey years)?
> Thank you so much for your help and time; I really appreciate it!
> Cheers,
> Rebecca
___________________________________________
Rebecca M. Kanter, PhD
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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index