Exclusive breastfeeding [message #8517] |
Sun, 08 November 2015 15:33 |
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
|
|
|