The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » BDHS2014-bdkr data set- Children nutrition- table 11.6 in BDHS report, 4+food group
Re: BDHS2014-bdkr data set- Children nutrition- table 11.6 in BDHS report, 4+food group [message #14303 is a reply to message #14281] Tue, 20 March 2018 16:48 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3208
Registered: February 2013
Senior Member

Following is a response by DHS Technical Specialist, Benedict Rukundo:

Thanks for your query, there are some differences in the Nepal 2016 and BD2014 report that may account for some of the differences you are noting. In Nepal, the age variable is b19 and no longer needs to be calculated as done in BD2014. The code below uses b19 and should give the correct n in the report. If you run your previous code (**creating the variable diet4) to calculate MDD, it should now match the Nepal report.

*Generate weight variable**
gen wgt=v005/1000000

*Generate age, keep those <2 years
gen age=b19
keep if age<24
*keep only those children alive 
ta b5
keep if b5==1
*children must be the youngest child and living with mother
*keep only those living with mother
keep if b9==0
* finding the youngest child living with the mother
bysort v001 v002 v003: egen minbidx=min(bidx) 
* keep only children less than 2 years 
keep if age<24
ta bidx minbidx 
* need to drop those that are bidx==2 and minbidx==1
drop if bidx>minbidx

*drop those under 6 months
drop if age<6

*Generate age groups
recode age (6/8=1 "6-8")(9/11=2 "9-11")(12/17=3 "12-17")(18/23=4 "18-23"), gen (age_months)
ta age_month [iw=wgt]

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to create media exposure?
Next Topic: Creating Nutritional intake
Goto Forum:
  


Current Time: Wed Dec 11 21:39:40 Coordinated Universal Time 2024