Re: child nutrition BDHS-2011 [message #2832 is a reply to message #2574] |
Fri, 29 August 2014 10:09 |
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
|
|
|