Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create second weight variable in transform step to denormalise data and estimate numbers in strata #13

Open
soniwe opened this issue Sep 14, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@soniwe
Copy link
Contributor

soniwe commented Sep 14, 2018

  1. Create a new column in the transformed dataframes by merging with worldpop data for women aged 15-49 for the related country and same year as survey.

  2. Create a new column in the transformed dataframes for number of women surveyed (need to extract this from the survey reports or meta-data)

  3. Calculate new norm_weight =

Example Stata code for Kenya 2014:
*Rescaling of the sampling weight to sum to the population estimate for Women 15-49

generate pop_women_15_49 = 10549000
/*UN population (world prospect) estimate of women 15-49 yrs old in Kenya in 2013 */

generate weightpop = pop_women_15_49v005/(310791000000)
/* 31,079 women responded to the survey */

*Define the sample design (DHS VII)
svyset [pweight=weightpop], psu(v021) strata(v022)

@soniwe soniwe added the enhancement New feature or request label Sep 14, 2018
@LucieContamin LucieContamin removed their assignment Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants