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
 kyawlwins Messages: 1Registered: 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

 calculation of exclusive breastfeeding By: Shree on Fri, 07 June 2013 08:55 Re: calculation of exclusive breastfeeding By: Liz-DHS on Tue, 25 June 2013 10:42 Re: calculation of exclusive breastfeeding By: jyourkavitch on Mon, 18 August 2014 22:33 Re: calculation of exclusive breastfeeding By: thebull on Wed, 24 September 2014 19:06 Re: calculation of exclusive breastfeeding By: Liz-DHS on Thu, 25 September 2014 09:37 Re: calculation of exclusive breastfeeding By: Shek on Thu, 27 November 2014 21:43 Re: calculation of exclusive breastfeeding By: Shek on Thu, 27 November 2014 21:44 Re: calculation of exclusive breastfeeding By: Liz-DHS on Thu, 29 January 2015 12:19 Re: calculation of exclusive breastfeeding By: danafer on Thu, 17 September 2015 10:09 Re: calculation of exclusive breastfeeding By: Lupe on Mon, 14 December 2015 11:44 Re: calculation of exclusive breastfeeding By: tony on Mon, 22 February 2016 10:41 Re: calculation of exclusive breastfeeding By: Lupe on Tue, 23 February 2016 08:15 Re: calculation of exclusive breastfeeding By: tony on Tue, 23 February 2016 09:43 Re: calculation of exclusive breastfeeding By: tony on Sat, 27 February 2016 09:51 Re: calculation of exclusive breastfeeding By: tony on Sat, 27 February 2016 14:27 Re: calculation of exclusive breastfeeding By: shyam on Fri, 04 February 2022 08:50 Re: calculation of exclusive breastfeeding By: Mon lay on Thu, 25 November 2021 03:53 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Thu, 25 November 2021 10:37 calculation of exclusive breastfeeding By: anuth on Sat, 30 January 2016 11:27 Re: calculation of exclusive breastfeeding By: Liz-DHS on Wed, 10 February 2016 15:03 Re: calculation of exclusive breastfeeding By: Lupe on Wed, 10 February 2016 15:41 Re: calculation of exclusive breastfeeding By: Putri on Sat, 12 March 2016 11:37 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Tue, 29 March 2016 16:08 Re: calculation of exclusive breastfeeding By: Lupe on Wed, 30 March 2016 12:59 Re: calculation of exclusive breastfeeding By: riakusumaw on Wed, 30 March 2016 10:06 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Wed, 20 April 2016 13:13 Re: calculation of exclusive breastfeeding By: sumonrupop on Sun, 10 July 2016 12:51 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Tue, 12 July 2016 17:54 Re: calculation of exclusive breastfeeding By: anuth on Tue, 08 November 2016 11:14 Re: calculation of exclusive breastfeeding By: Lupe on Tue, 08 November 2016 11:53 Re: calculation of exclusive breastfeeding By: anuth on Tue, 08 November 2016 13:29 Re: calculation of exclusive breastfeeding By: Roselync on Sun, 18 December 2016 06:28 Re: calculation of exclusive breastfeeding By: Sajhama on Wed, 25 October 2017 14:29 Re: calculation of exclusive breastfeeding By: Lupe on Thu, 26 October 2017 11:25 Re: calculation of exclusive breastfeeding By: Sajhama on Thu, 26 October 2017 11:48 Re: calculation of exclusive breastfeeding By: haseena on Fri, 05 February 2021 14:46 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Fri, 05 February 2021 16:33 Re: calculation of exclusive breastfeeding By: kyawlwins on Thu, 15 June 2023 04:54 Re: calculation of exclusive breastfeeding By: Janet-DHS on Fri, 30 June 2023 16:04 Re: calculation of exclusive breastfeeding By: Lupe on Sat, 06 February 2021 02:58 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Sun, 18 December 2016 17:37 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Sun, 18 December 2016 17:39 Re: calculation of exclusive breastfeeding By: Roselync on Sun, 18 December 2016 19:14 Re: calculation of exclusive breastfeeding By: Roselync on Sun, 18 December 2016 19:20 Re: calculation of exclusive breastfeeding By: Trevor-DHS on Mon, 19 December 2016 11:20
 Previous Topic: Tanzania 2015 DHS nutritional indicators recoding Next Topic: underweight status according to child's living arrangements
Goto Forum:

Current Time: Fri Sep 20 02:35:19 Coordinated Universal Time 2024