The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Minimum Meal frequency in BDHS 2014
Minimum Meal frequency in BDHS 2014 [message #11864] Wed, 22 February 2017 02:15 Go to previous message
Md. Nurnabi Sheikh is currently offline  Md. Nurnabi Sheikh
Messages: 4
Registered: May 2016
Location: Bangladesh
Member
I am working IYCF practice on BDHS child datasets for my MPH thesis,and trying to replicate Minimum meal frequency in table 11.6. But I am not able to get same percentages among breastfed children, non-breastfed children and all children age 6-23 months. I am working in stata and my algorithm as follows;

* Last child in the last 2 years living with mother
* age in months
gen age = v008-b3
* drop if too old or not alive
keep if age<24 & b5==1

* keep only those children living with mother ...
keep if b9==0
* ... and keep the last born of those
drop if _n > 0 & caseid == caseid[_n-1]

drop if age<6

*Minimum meal frequency
tab m39, m

*Minimum meal frequency for breastfeed child age 6-8 months, 9-23 months
recode m39 (2/7=1 "2-7"), gen(mm1)
recode m39 (3/7=1 "3-7"), gen(mm2)

*Minimum meal frequency for non-breastfeed child age 6-23 months
recode m39 (4/7=1 "4-7"), gen(mm3)

*Age group
recode age (6/8=1 "6-8")(9/23=2 "9-23"), gen (age_g)

*Breastfeeding status
gen still_feeding=1 if m4==95
replace still_feeding=0 if still_feeding==.

*Minimum meal frequency applying all conditions
gen mmf1=1 if mm1==1 & age_g==1 & still_feeding==1

gen mmf2=1 if mm2==1 & age_g==2 & still_feeding==1

gen mmf3=1 if mm3==1 & still_feeding==0

It would be very much helpful for me if any one help me with stata command.


Regards,
Nurnabi


Nurnabi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Turkey 2008 child weight and height
Next Topic: Merge two data set
Goto Forum:
  


Current Time: Sun Dec 22 07:25:32 Coordinated Universal Time 2024