The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » calculation of exclusive breastfeeding
Re: calculation of exclusive breastfeeding [message #27045 is a reply to message #22135] Thu, 15 June 2023 04:54 Go to previous messageGo to previous message
kyawlwins is currently offline  kyawlwins
Messages: 1
Registered: June 2023
Member
Hello Trevor,

I am calculating the exclusive breastfeeding among <6 months using Indonesia 2017 datasets.

I used the following commends.

use IDKR71FL

**weight
gen wgt=v005/1000000


* 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 b19<6 & b5==1
* recode age into groups
* 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]
* check the deonimnator
tab age [iw=wgt]

* 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<=8)

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

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

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

* 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,m

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

tab feeding [iw=wgt]

However, I found that my result is a little different with the report. I got 51.3% while the report revealed 51.5%.


Could you please guide me further. Thanks

[Updated on: Thu, 15 June 2023 08:42]

Report message to a moderator

 
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tanzania 2015 DHS nutritional indicators recoding
Next Topic: underweight status according to child's living arrangements
Goto Forum:
  


Current Time: Fri Nov 22 15:23:03 Coordinated Universal Time 2024