The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » stunting calculation
Re: stunting calculation [message #26425 is a reply to message #26417] Mon, 20 March 2023 09:20 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3167
Registered: February 2013
Senior Member

Following is a response from Senior DHS staff member, Tom Pullum:


You do not need to combine the PR and KR files for this purpose. You use one file or the other. In the PR file, the relevant variables are hc70-hc72. In the KR file they are hw70-hw72. If you use the PR file you get a few more children--those who are in the household but whose mother is NOT in the household. I will paste the Stata lines below, illustrating the "tabstat" command, which some users may not know about. You can run the same lines in the KR file by changing hc to hw.
use "...IAPR7DFL.DTA", clear

keep if hc1<.
gen haz=hc70 if hc70>=-600 & hc70<=600
gen waz=hc71 if hc71>=-600 & hc71<=500
gen whz=hc72 if hc72>=-500 & hc72<=500

gen stunted=0
replace stunted=100 if haz<-200

gen underweight=0
replace underweight=100 if waz<-200

gen overweight=0
replace overweight=100 if whz>200

gen wasted=0
replace wasted=100 if whz<-200

tabstat stunted underweight overweight wasted [fweight=hv005], statistics(mean) by(hv024) format(%6.1f)

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: command for Cluster Average of Women's employment
Next Topic: Birth order and Antenatal Care NFHS-5 India
Goto Forum:
  


Current Time: Sun Oct 6 02:58:48 Coordinated Universal Time 2024