The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Postnatal checkup:Rwanda DHS 2014-15
Postnatal checkup:Rwanda DHS 2014-15 [message #12505] Tue, 30 May 2017 22:04 Go to previous message
rutonh is currently offline  rutonh
Messages: 1
Registered: March 2013
Location: Rwanda
Member

Hi,

I was trying to replicate Table 9.7: Timing of first postnatal checkup using STATA code developed by Tom Pullum responding to someone's else request but I was not successful. Could someone kindly help me whats wrong with my code?

* sample weight
generate weight = v005/1000000
label var weight "Household sample weight"

gen timingc=6
replace timingc=1 if m51<=103
replace timingc=2 if m51>=104 & m51<=123
replace timingc=3 if m51>=201 & m51<=202
replace timingc=4 if m51>=203 & m51<=206
replace timingc=5 if m51>=207 & m51<=241
replace timingc=. if bidx>1

label define timing 1 "< 4 hours" 2 "4 to 23 hours" 3 "1 to 2 days" 4 "3 to 6 days" 5 "7 to 41 days" 6 "Never"
label values timingc timing
tab timingc [iweight=weight]

Thanks in advance



 
Read Message
Read Message
Read Message
Previous Topic: Definition of ARI
Next Topic: Merging children from PR file with Mothers from IR file
Goto Forum:
  


Current Time: Fri Apr 26 06:11:27 Coordinated Universal Time 2024