The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Unable to recreate numbers from DHS Final Survey
Re: Unable to recreate numbers from DHS Final Survey [message #8492 is a reply to message #8491] Tue, 03 November 2015 13:19 Go to previous message
luke is currently offline  luke
Messages: 4
Registered: November 2015
Location: Baltimore MD
Member
Sure. This works for most countries I am using then you will see a way to handle the exception for Uganda:


gen psu = hv021
gen strata = hv022
replace strata = hv024 if (hv000=="UG6" ) // Uganda 6 has no strata. Sampled clusters from UNHS 2010 clusters, which were stratified according to region.
gen sampwt = hv005/1000000
svyset psu [pw = sampwt], strata(strata)

BTW I incorrectly wrote UNHS as Uganda National Health Survey in my last message. The H is for Household.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setting svyset for KDHS 2008
Next Topic: how the sample increase when we use weights
Goto Forum:
  


Current Time: Mon Apr 29 03:54:14 Coordinated Universal Time 2024