The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Skilled assistance at birth- Kenya and Senegal
Skilled assistance at birth- Kenya and Senegal [message #25026] Mon, 22 August 2022 05:54 Go to next message
dgodha
Messages: 44
Registered: November 2016
Location: India
Member
Hello DHS experts,

My estimates for "Person providing assistance" and "Skilled assistance at birth" are not matching those in the reports for Kenya (DHS 2014) and Senegal (DHS 2017). I have used the following code
//Skilled provider during delivery
	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

	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"
	
*For Kenya
**********
	recode rh_del_pv (1/2 = 1 "Skilled provider") (3/5 = 2 "Unskilled provider") (6 = 3 "No one") (9=4 "Don't know/missing"), gen(sba)
	label var sba "Skilled assistance during delivery"
*For Senegal
************	
	recode rh_del_pv (1/2 = 1 "Skilled provider") (3/5 = 2 "Unskilled provider") (6 = 3 "No one") (9=4 "Don't know/missing"), gen(sba)
	replace sba=1 if m3c==1
	label var sba "Skilled assistance during delivery"

I will request your support for this.

Thank you
Deepali


Deepali
Re: Skilled assistance at birth- Kenya and Senegal [message #25034 is a reply to message #25026] Mon, 22 August 2022 08:50 Go to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

The code you have used is correct, assuming you have used the KR file. If you used the BR file you need to restrict to children under five as shown in the GitHub code you used.

I was able to get a match to the final reports using this code as you can see in the attached screenshots.

Perhaps you are not using weights?

Please try again with applying weights. First you would need to generate a weight variable as follows:
gen wt = v005/1000000

Then tabulate your variable:

tab sba [iw=wt]

Best,

Shireen Assaf
The DHS Program
Previous Topic: How to add village level characteristics
Next Topic: Level-weights calculation
Goto Forum:
  


Current Time: Tue Nov 26 23:09:59 Coordinated Universal Time 2024