The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Child mortality with binary code
Child mortality with binary code [message #19914] Sat, 29 August 2020 04:43 Go to next message
Santosh88 is currently offline  Santosh88
Messages: 8
Registered: November 2019
Dear Sir/Madam

I have recoded child mortality in a binary variable in STATA using Kid file using STATA code
gen wt= v005/1000000

cap drop child_deaths
gen child_deaths = 0
replace child_deaths = 1 if inrange(b6,212,334)
ta child_deaths [iw=wt]

but the child mortality estimate is not matching with the NFHS-4, 2015-16 report for the 0-4 years.
Please help me with this code to estimate the correct /lump sump child mortality value given in NFHS-4 report.
Re: Child mortality with binary code [message #19938 is a reply to message #19914] Fri, 04 September 2020 09:40 Go to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 13
Registered: August 2020
Location: USA
Dear user,

This is not the correct way to calculate child mortality using DHS data. In fact the code is much more complex.

We have Stata code to calculate child mortality available on our DHS Code Share library on GitHub at ( Please read the readme file to know how to run these do files. The do file you need is in Chapter 8, the Child Mortality Chapter. Child mortality is calculated in the file but you need to run this from the file. Please read the readme file that describes these steps.

It may also be useful for you to read a description on how these rates are calculate in the Guide to DHS Statistics ( x.htm#t=Guide_to_DHS_Statistics_DHS-7.htm) . Again please go to Chapter 8.

Thank you.

Shireen Assaf
The DHS Program
Previous Topic: Previous pregnancy birth interval in months
Next Topic: Rural-Urban maternal health inequalities in south Africa i
Goto Forum:

Current Time: Wed Sep 23 19:20:05 Eastern Daylight Time 2020