The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » birth order (problem in calculating the percentages for birth order)
Re: birth order [message #23639 is a reply to message #23638] Mon, 25 October 2021 10:13 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

You would use bord to recode birth order to match table 9.6 as follows:
recode bord (1=1) (2/3=2 "2-3") (4/5=3 "4-5") (6/max=4 "6+"), gen(birthor)

Then if you would like to code assistance during delivery, please use the following code also found on our code share page for this chapter in the RH_DEL.do file. Before you run this code you need to run the code in the RH_age_period.do file: https://github.com/DHSProgram/DHS-Indicators-Stata/tree/mast er/Chap09_RH

gen rh_del_pv = 9
replace rh_del_pv = 6 if m3n == 1
replace rh_del_pv = 5 if m3h == 1 | m3i == 1 | m3j == 1 | m3k == 1 | m3l == 1 | m3m == 1
replace rh_del_pv = 4 if m3g == 1
replace rh_del_pv = 3 if m3c == 1 | m3d == 1 | m3e == 1 | m3f == 1
replace rh_del_pv = 2 if m3b == 1
replace rh_del_pv = 1 if m3a == 1
replace rh_del_pv = 9 if m3a == 8 | m3a == 9
replace rh_del_pv = . if age>=period

label define pv ///
1 "Doctor" ///
2 "Nurse/midwife" ///
3 "Country specific health professional" ///
4 "Traditional birth attendant" ///
5 "Relative/other" ///
6 "No one" ///
9 "Don't know/missing"
label val rh_del_pv pv
label var rh_del_pv "Person providing assistance during delivery"

Then to match the table you can use the following:
gen wt=v005/1000000
ta birthor rh_del_pv [iw=wt], row

Best,
Shireen Assaf
The DHS Program

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Health Service provision for females living with FGM/C
Next Topic: Matching Variables from IDIR and IDOD for 2002, 2007, 2012, 2017
Goto Forum:
  


Current Time: Mon Dec 2 17:21:59 Coordinated Universal Time 2024