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
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
 
Read Message
Read Message
Previous Topic: How to add village level characteristics
Next Topic: Level-weights calculation
Goto Forum:
  


Current Time: Mon Nov 25 12:29:39 Coordinated Universal Time 2024