The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » child nutrition BDHS-2011
Re: child nutrition BDHS-2011 [message #2832 is a reply to message #2574] Fri, 29 August 2014 10:09 Go to previous messageGo to previous message
DHS user is currently offline  DHS user
Messages: 111
Registered: February 2013
Senior Member
I use the Stata codes below in an attempt to reproduce the Nigeria DHS 2013 Child Anthropometry table using the PR6 files. However, my results are slightly different and total is 26,255. Please advise.

use "/Users/user/Documents/NDHS2013/NGPR6AFL.dta
*generate weight
generate weight = hv005/1000000

// child stunting calculation
codebook hc70
tab hc70 if hc70>9990,m
tab hc70 if hc70>9990,m nolabel
gen HAZ=hc70
replace HAZ=. if HAZ>=9996
histogram HAZ
gen stunted=.
replace stunted=0 if HAZ ~=.
replace stunted=1 if HAZ<-200
tab stunted

// child wasting calculation
codebook hc72
tab hc72 if hc72>9990,m
tab hc72 if hc72>9990,m nolabel
gen WAH=hc72
replace WAH=. if WAH>=9996
histogram WAH
gen wasted=.
replace wasted=0 if WAH ~=.
replace wasted=1 if WAH<-200
tab wasted

// child underweight calculation
codebook hc71
tab hc71 if hc71>9990,m
tab hc71 if hc71>9990,m nolabel
gen WAZ=hc71
replace WAZ=. if WAZ>=9996
histogram WAZ
gen underweight=.
replace underweight=0 if WAZ ~=.
replace underweight=1 if WAZ<-200
tab underweight

tab shstat wasted [iweight=weight], row

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Haz weighted mean
Next Topic: More questions on exclusive breastfeeding syntax
Goto Forum:
  


Current Time: Fri Apr 19 14:54:13 Coordinated Universal Time 2024