Hello,
I am working with a national database (Asthma Call Back Survey) that has detailed information on reweighting files. The reweighting documentation recommends a proportional re-weighting to create new sample weights (which I have created).
Once I create the new weight, the documentation asks us to do the following in SAS:
1. Create a new variable (SURVYEAR) that identifies the year of the data file for each record.
2. Add SURVYEAR to the strata statement in SAS SURVEYXX. This accounts for the fact that each year is from a different sample or strata.
Can someone please tell me how to replicate Step 2 in STATA. I do not know where to accommodate the survey year variable in the svyset statement.
My current svyset statement looks like this:
svyset _psu [pweight=new_wt], strata(_ststr)
Thanks,
Maithili
I am working with a national database (Asthma Call Back Survey) that has detailed information on reweighting files. The reweighting documentation recommends a proportional re-weighting to create new sample weights (which I have created).
Once I create the new weight, the documentation asks us to do the following in SAS:
1. Create a new variable (SURVYEAR) that identifies the year of the data file for each record.
2. Add SURVYEAR to the strata statement in SAS SURVEYXX. This accounts for the fact that each year is from a different sample or strata.
Can someone please tell me how to replicate Step 2 in STATA. I do not know where to accommodate the survey year variable in the svyset statement.
My current svyset statement looks like this:
svyset _psu [pweight=new_wt], strata(_ststr)
Thanks,
Maithili
Comment