The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » weighting data
Re: weighting data [message #1414 is a reply to message #757] Sun, 23 February 2014 17:45 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 800
Registered: January 2013
Senior Member
1) You can use the following to set up your survey design, stratification and weighting:

gen psu=v021
gen strata=v023
gen weight=v005/1000000
svyset psu [pweight=weight], strata(strata)

Note that the strata can vary from survey to survey and may not always be v023. In many surveys the strata are urban and rural areas within each region and can be produced with
egen strata = group(v024 v025), label
However, for the Bangladesh 2007 this would be incorrect as the strata are not just urban and rural areas in each region. See Appendix A of most final reports for information on the stratum used in selecting the sample. In this survey, v023 contains the 22 strata used for the stratification of the sample.

2) Yes, you should use svy in the subsequent commands.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Weighting in pooled data
Next Topic: Weighting Data for Pooled Indonesian DHS Dataset
Goto Forum:
  


Current Time: Tue Jul 16 21:28:25 Coordinated Universal Time 2024