The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Sampling » Set up DRC data in Stata
Re: Set up DRC data in Stata [message #2876 is a reply to message #2871] Fri, 05 September 2014 13:33 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

In this survey the stratum variable can be constructed as v024 x v025. In all the DHS surveys I know about, this will give the strata or be the best approximation if, say, v022 is not in the data. The summarize command, and most related commands, will usually not work with weights, but "mean(y), over(x)" will work. For example, for y=v201 (children ever born), here is the syntax:

* Open CDIR50FL.dta

* region or province: v024
* children ever born: v201
* stratum: v024 x v025
* weight: v005
* cluster: v001 or v021 (the same)

egen stratum=group(v024 v025)
svyset v001 [pweight=v005], strata(stratum)
svy: mean v201, over(v024)

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Questionnaires applied to sub-samples
Next Topic: AREG Model and Svyset
Goto Forum:
  


Current Time: Sat Nov 23 14:25:14 Coordinated Universal Time 2024