The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Quetions about calculating stunting rates in Stata
Re: Quetions about calculating stunting rates in Stata [message #18617 is a reply to message #18545] Mon, 13 January 2020 09:22 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3035
Registered: February 2013
Senior Member
Following is a response from DHS Senior Analysis & Research Manager, Shireen Assaf:


The Stata code below will match the table shown in the final report. Please use the PR file.

gen wt=hv005/1000000

//Severely stunted
gen nt_ch_sev_stunt= 0 if hv103==1
replace nt_ch_sev_stunt=. if hc70>=9996
replace nt_ch_sev_stunt=1 if hc70<-300 & hv103==1 
label var nt_ch_sev_stunt "Severely stunted child under 5 years"

//Stunted
gen nt_ch_stunt= 0 if hv103==1
replace nt_ch_stunt=. if hc70>=9996
replace nt_ch_stunt=1 if hc70<-200 & hv103==1 
label var nt_ch_stunt "Stunted child under 5 years"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Next Birth After Abortion
Next Topic: standardization of age for states in stata
Goto Forum:
  


Current Time: Thu Apr 18 20:15:29 Coordinated Universal Time 2024