The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » NFHS-5 Dietary indicators (Minimum Acceptable Diet Syntax Stata)
Re: NFHS-5 Dietary indicators [message #25484 is a reply to message #25478] Thu, 27 October 2022 07:33 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3172
Registered: February 2013
Senior Member
Following is a response from DHS staff member, Tom Pullum:

For this survey, we almost never get an exact match with the report. The first thing would be to try to match the n. The table has 62,253 and you get 60,849. The following Stata code gives 62,488, which is closer. Can you try again with this denominator? Note that the child has to be age 6-23 months, living with the mother, the youngest such child, and has to have a valid code for m5.

use "...IAKR7DFL.DTA", clear

* age 6-23 months, alive, living with mother; youngest such child
sort v024 v001 v002 v003 bidx
keep if b19>=6 & b19<=23 & b5==1 & b9==0
sort caseid bidx
egen sequence=seq(), by(caseid) 
tab sequence
keep if sequence==1 & m5<=94
tab b19 [iweight=v005/1000000]

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unique ID Error
Next Topic: Antenatal care at least four in India nfhs report matching
Goto Forum:
  


Current Time: Sun Oct 13 09:34:16 Coordinated Universal Time 2024