The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Generating new variables in dataset with weighting
Generating new variables in dataset with weighting [message #4043] Fri, 20 March 2015 10:44 Go to previous message
Lizzynaija is currently offline  Lizzynaija
Messages: 12
Registered: February 2015
Location: United States

I have been working with the 2013 Nigeria DHS births recode dataset, using Stata for my analysis.

I have applied svyset to enable weighting in the analysis. After reading the Stata manual, I became confused as to how to generate new variables now that I have applied svyset command. In particular, I am not sure about when to apply the svy subpop command.

Can I still use the regular "generate" command to create new variables, and when and how should I apply the "svy subpop" command?

Thank you very much,
Read Message
Read Message
Previous Topic: De-normalizing and weighting data for multiple countries
Next Topic: v022, mv022, hv022 (the sample strata variables) in 2003 Burkina Faso stata dataset
Goto Forum:

Current Time: Wed Jun 12 16:54:09 Coordinated Universal Time 2024