The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » how to get the right case numbers in child recode, & then restrict further
how to get the right case numbers in child recode, & then restrict further [message #876] Sat, 26 October 2013 13:13 Go to previous message
French Smith
Messages: 2
Registered: October 2013
Dear DHS STATA crowd,

I wish to analyze the Demographic and Health Surveys (DHS) data on children under five.

I have set up my analysis as follows, using at Tanzania DHS 2010 as a starting point.

But I have two questions:
1. Why do I have 8,023 cases not the 8,081 that the report (the report and dataset are available at 45.cfm) says exit?
2. How do I restrict the analysis to V465, which was a question asked only of respondents with a youngest child under five living with them?

Probably simple questions, sorry, but my STATA mind needs jogging!



set mem 450m

set matsize 800


*v022 is sample stratum number
gen stratid = v022

*v021 is PSU
gen psu = v021

*v005 is sample weight
gen weight = v005/1000000

svyset psu [pw=weight], strata(stratid)

*Just to compare totals. Should get 8,081 for Tanzania DHS 2010 not 8,023!
tab stratid

*keep if complete response
keep if v015==1

*keep if child lives with respondent. But this command isn't recognized!
keep if B9==0
Read Message
Read Message
Read Message
Previous Topic: infant and young child feeding
Next Topic: Birth Interval-Data Missing
Goto Forum:

Current Time: Sat Dec 2 08:08:27 Coordinated Universal Time 2023