The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Minimum Meal frequency in BDHS 2014
Re: Indonesia IYCF DHS 2012 [message #17619 is a reply to message #17607] Sun, 28 April 2019 23:44 Go to previous messageGo to previous message
Hai R is currently offline  Hai R
Messages: 15
Registered: March 2018
Location: Brisbane
Member
Hi,

here is my commands, however, I got slightly different result compared to DHS report:
*2. Exclusive Breastfeeding (EBF)*
*child age (0-5 months for EBF)
recode age (0/5 = 1 "0-5")(6/8 = 2 "6-8")(9/11 = 3 "9-11")(12/17 = 4 "12-17")(18/23 = 5 "18-23"), gen(child_age1)
tab child_age1 [iw=rweight]

//Breastfeeding status.
gen water=0
gen liquids=0
gen milk=0
gen solids=0
gen breast=0

//Water
replace water=1 if (v409>=1 & v409<=7)

//Other non-milk liquids
//check for country specific liquids
foreach xvar of varlist v410 v411 v411a v412a v412c v413* {
replace liquids=1 if `xvar'>=1 & `xvar'<=7
}

* Powdered or tinned milk, formula, fresh milk
foreach xvar of varlist v411 v411a {
replace milk=1 if `xvar'>=1 & `xvar'<=7
}

* Solid food
* check for country specific foods
foreach xvar of varlist v412a v412c v413* {
replace solids=1 if `xvar'>=1 & `xvar'<=7
}


*Still breastfeeding
replace breast=1 if m4==95

tab1 water liquids milk solids breast

* Generate column variable used in table 11.3
gen feeding=1
replace feeding=2 if water==1
replace feeding=3 if liquids==1
replace feeding=4 if milk==1
replace feeding=5 if solids==1
replace feeding=0 if breast==0
tab feeding

label define feeding ///
0 "Not breastfeeding" 1 "Exclusive breastfeeding" ///
2 "+Water" 3 "+Liquids" ///
4 "+Other Milk" 5 "+Solids"
label val feeding breastfeeding

tab child_age feeding [iw=rweight], row
tab child_age1 feeding [iw=rweight], row

replace feeding=1 if feeding==1
replace feeding=0 if feeding==0
replace feeding=0 if feeding==2
replace feeding=0 if feeding==3
replace feeding=0 if feeding==4
replace feeding=0 if feeding==5
recode feeding (1=1 "Yes") (0=0 "No") if child_age1==1, gen (EBF)
label variable EBF "Exclusive Breast Feeding"
tab EBF [iw=rweight]


 
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: Fri Dec 6 00:01:36 Coordinated Universal Time 2024