The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » DHS India Differences in Reported and Generated Figures using KR & PR files (DHS 2019-21)
Re: DHS India Differences in Reported and Generated Figures using KR & PR files (DHS 2019-21) [message #25336 is a reply to message #25332] Thu, 06 October 2022 08:43 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 891
Registered: April 2022
Senior Member
Following is a response from DHS staff member Tom Pullum:

I will paste below Stata code to get the indicators from the KR and PR files. Basically just what you did, but it is not necessary to restrict on age. The relevant variables are NA (a dot) if the child is out of range.

I too do not match the n's in the report, but we almost never match the NFHS reports. Note that we are now on version D of the NFHS-5 data files. A more realistic goal would be to match STATcompiler, but even that is very difficult.

use "...IAKR7DFL.DTA", clear

gen haz=hw70/100 if hw70>-600 & hw70<600
gen waz=hw71/100 if hw71>-600 & hw71<500
gen whz=hw72/100 if hw72>-500 & hw72<500

gen stunted=0 if haz<.
replace stunted=1 if haz<-2

gen underweight=0 if waz<.
replace underweight=1 if waz<-2

gen overweight=0 if whz<.
replace overweight=1 if whz<. & whz>2

gen wasted=0 if whz<.
replace wasted=1 if whz<-2

tab1 stunted underweight overweight wasted [iweight=v005/1000000]


use "...IAPR7DFL.DTA", clear

gen haz=hc70/100 if hc70>-600 & hc70<600
gen waz=hc71/100 if hc71>-600 & hc71<500
gen whz=hc72/100 if hc72>-500 & hc72<500

gen stunted=0 if haz<.
replace stunted=1 if haz<-2

gen underweight=0 if waz<.
replace underweight=1 if waz<-2

gen overweight=0 if whz<.
replace overweight=1 if whz<. & whz>2

gen wasted=0 if whz<.
replace wasted=1 if whz<-2

tab1 stunted underweight overweight wasted [iweight=hv005/1000000]
 
Read Message
Read Message
Read Message
Previous Topic: Staple food by type in DHS nutrition surveys
Next Topic: Ghana DHS 2019 weight height
Goto Forum:
  


Current Time: Tue Nov 26 13:19:22 Coordinated Universal Time 2024