The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Nutrition and Anthropometry » Exclusive breastfeeding
Exclusive breastfeeding [message #8517] Sun, 08 November 2015 15:33 Go to previous message
sumonrupop is currently offline  sumonrupop
Messages: 23
Registered: August 2015
Location: Rajshahi
Member

Hi,

I am want to calculate exclusive breastfeeding by using BDHS-2011 data. I developed the following do file and used birth record data. But it give the different result reported in Table 11.2 in BDHS-2011 report.

clear all
set more off
use "D:\ALL BDHS STATA\Child mortality\BDBR61FL.DTA"
keep if v008 - b3 < 24
gen long momid = ((8000 + v001) * 10000) + (v002 * 100) + v003
by momid (bidx), sort: gen byte lastchild = sum(b5) == 1 & sum(b5[_n - 1]) == 0
gen byte exlbreast_subpop = 1 if (v008 - b3) < 6 & lastchild == 1 & b9 == 0
replace exlbreast_subpop= 0 if exlbreast_subpop==.
label define exlbreast_subpop 1"exclusively breastfeed" 0"Not exclusively breastfeed"
label values exlbreast_subpop exlbreast_subpop
tab exlbreast_subpop

Can anyone help me in this matter? It would be better if anyone suggest me what is wrong and supply coding accordingly.


Md. Nuruzzaman Khan
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: More questions on exclusive breastfeeding syntax
Next Topic: HAZ and WHZ records in PR and KR
Goto Forum:
  


Current Time: Fri Apr 19 04:09:39 Coordinated Universal Time 2024