The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Issues with weighting NEW Ethiopian DHS-2019
Re: Issues with weighting NEW Ethiopian DHS-2019 [message #23296 is a reply to message #23289] Tue, 17 August 2021 12:37 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,
Can you refer me to this response about the pooled sample?
In a pooled sample you will also need to create a unique strata and PSU for each survey to use in the svyset if you are using Stata.
To give equal weight to each survey in a pooled analysis I have used previously the following code (this is using appended data from several surveys). There are many ways to deal with pooled samples so there could be another way suggested that is also fine.

* code to give equal weight to each surveys
* you will need a survey variable to identify each survey
egen N=total(v005)
egen n=total(v005), by(survey)

* In this case I had 25 surveys, change this number to the number of surveys you have.
gen wtr=v005*(N/25)/n

egen v001r=group(survey v001)
egen stratar=group(survey strata)
svyset [pw=wtr], psu(v001r) strata(stratar) singleunit(centered)

Hope this helps.
Best,
Shireen

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nigeria DHS 2018: Weighting for Multilevel Model
Next Topic: How to use weights when using different samples of women
Goto Forum:
  


Current Time: Wed Nov 27 20:33:12 Coordinated Universal Time 2024