The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Pooling 3 rounds of DHS Nepal -- weights? (pooled cross-section sampling weights Nepal)
Re: Pooling 3 rounds of DHS Nepal -- weights? [message #19630 is a reply to message #19629] Wed, 22 July 2020 16:12 Go to previous messageGo to previous message
LeahBevis is currently offline  LeahBevis
Messages: 6
Registered: October 2019
Member
Additionally, actually, when I try this there seems to be a problem with the stratum variable created.

Ignoring the issue of relative weighting of the 3 survey for a moment, I ran:
gen svyweight = v005/1000000
gen survey=1 if year==2006
replace survey=2 if year==2011
replace survey=3 if year==2016
egen clust=group(survey v021)
egen stratum=group(survey v023)

Then I can successfully run this:

svyset clust [pw=svyweight],
svy: reg HAZ X $CONTROLS

But THIS does not work, when I add the stratum:
svyset clust [pw=svyweight], strata(stratum)
svy: reg HAZ X $CONTROLS

So there seems to be a problem with creating the stratum as a grouped variable in that way. Can you please advise? Thanks!


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Combine weights Men and Women - Cambodia DHS
Next Topic: How to Weight Data in R
Goto Forum:
  


Current Time: Tue Nov 19 09:40:10 Coordinated Universal Time 2024