The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Other countries » Child discipline (Unable to reproduce denominator and percent)
Re: Child discipline [message #17881 is a reply to message #17865] Tue, 02 July 2019 11:27 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3039
Registered: February 2013
Senior Member
Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

Your do file is correct except that you must add one more condition: sh148=hvidx. That is, after you open the data file, run this:

ta sh11a
keep if sh11a==1 
keep if hv102==1 
keep if sh148==hvidx
gen wt=hv005/1000000

ta sh150 [iw=wt]  
ta sh151 [iw=wt] 
ta sh152 [iw=wt]  
ta sh153 [iw=wt] 
ta sh154 [iw=wt] 
ta sh155 [iw=wt] 
ta sh156 [iw=wt] 
ta sh157 [iw=wt] 
ta sh158 [iw=wt] 
ta sh159 [iw=wt] 
ta sh160 [iw=wt] 
  
gen discipline = 0
replace discipline=1 if sh150==1|sh151==1|sh152==1|sh153==1|sh154==1|sh155==1|sh156==1|sh157==1|sh158==1|sh159==1|sh160==1
ta discipline [iw=wt]

Apparently sh11a identifies a household in which the module will be administered, but the module is only applied to ONE child in a selected household. That child is selected at random from all children age 2-14 in each selected household. The line number of that child is given by sh148. For some reason the information is copied onto all of the other children age 2014 in the selected household, but the tables in chapter 17 must be limited to the one selected child.
 
Read Message
Read Message
Read Message
Previous Topic: Teenagers definition
Next Topic: Final report Indonesia
Goto Forum:
  


Current Time: Thu Apr 25 01:19:30 Coordinated Universal Time 2024