Hi,
Sorry, fpc should not be in the topic heading.
I'm relatively new to Stata and new to using the svyset functions. I have Stata/SE 13.1 for Windows.
Very soon I will be receiving a dataset of survey responses from both Australian and New Zealand respondents. The data will be post-stratified within country, at the age*sex*region level. If one does not exist when I receive the data, I will be able to construct a suitable poststrata variable and associated postweight values.
I have read the Stata manual for svyset and have downloaded the poststrata.dta dataset and looked at the coding and set-up commands. However, I can't find an example of how to analyse cross-country data where the weights are country-specific. I have searched online and the Statalist, and watched the videos on YouTube.
The example given for the cat/dog visits for design set-up is: svyset, poststrata(type) postweight(postwgt)
It appears that this type of design specification won't meet my needs (only Australian data contributes to Australian estimates, and only New Zealand data contributes to New Zealand estimates):
svyset, strata(country) poststrata(age*sex*region combination) postweight(the-weights-used)
Do I need to analyse the data using separate datasets for each country (in which case, there is no strata to specify)?
I was hoping to keep the data in the one dataset and undertake the same analysis on a within-country basis simultaneously but the documentation suggests that the values will be produced on the basis of all data in the dataset, so I will need separate datasets.
Sorry, fpc should not be in the topic heading.
I'm relatively new to Stata and new to using the svyset functions. I have Stata/SE 13.1 for Windows.
Very soon I will be receiving a dataset of survey responses from both Australian and New Zealand respondents. The data will be post-stratified within country, at the age*sex*region level. If one does not exist when I receive the data, I will be able to construct a suitable poststrata variable and associated postweight values.
I have read the Stata manual for svyset and have downloaded the poststrata.dta dataset and looked at the coding and set-up commands. However, I can't find an example of how to analyse cross-country data where the weights are country-specific. I have searched online and the Statalist, and watched the videos on YouTube.
The example given for the cat/dog visits for design set-up is: svyset, poststrata(type) postweight(postwgt)
It appears that this type of design specification won't meet my needs (only Australian data contributes to Australian estimates, and only New Zealand data contributes to New Zealand estimates):
svyset, strata(country) poststrata(age*sex*region combination) postweight(the-weights-used)
Do I need to analyse the data using separate datasets for each country (in which case, there is no strata to specify)?
I was hoping to keep the data in the one dataset and undertake the same analysis on a within-country basis simultaneously but the documentation suggests that the values will be produced on the basis of all data in the dataset, so I will need separate datasets.
Comment