The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » PAB EDHS-2000 BR file (calculating protection at birth using EDHS 2000 BR data file)
Re: PAB EDHS-2000 BR file [message #20174 is a reply to message #20160] Mon, 05 October 2020 15:09 Go to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

The 2005 survey has a different way of presenting these indicators. They also use special variables.
I tried to match Table 9.4 in the 2005 final report. I was successful for the "two or more injections" which uses our standard code that I referenced from GitHub in my previous message. I also matched the "none but at least 5 lifetime TT injections". However, I was not successful to match the "one plus one additional injection in the 10 years prior to the pregnancy". Perhaps my code below will help you with this.

Thank you
Best,
Shireen
The DHS Program


*2005 Ethiopia survey

gen period = 60
gen age = v008 - b3_01


//tetnaus toxoid injections : From standard code on Github
recode m1_1 (0 1 8 9 . = 0 "No") (1/7 = 1 "Yes"), gen(rh_anc_toxinj)
replace rh_anc_toxinj = . if age>=period
label var rh_anc_toxinj "Received 2+ tetanus injections during last pregnancy"

gen yrtet= s419y_1>1986
replace yrtet=. if s419y_1==9998 | s419y_1==9999

gen tet1p10yr=0
replace tet1p10yr=1 if m1_1==1 & yrtet==1
replace tet1p10yr = . if bidx_01!=1 | age>=period

gen none5lifetime=0
replace none5lifetime=1 if m1_1==0 & (s418_1>4 & s418_1<8)
replace none5lifetime = . if bidx_01!=1 | age>=period

gen wt =v005/1000000
tab1 rh_anc_toxinj tet1p10yr none5lifetime [iw=wt]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Municipality sampling weight
Next Topic: Antenatal visit with skilled providers (Ethiopian DHS 2000, 2005, 2011 AND 2016))
Goto Forum:
  


Current Time: Thu Mar 28 18:29:45 Coordinated Universal Time 2024