Re: Variables on early initiation of breastfeeding (m34 and v426) [message #14016 is a reply to message #9980] |
Sat, 03 February 2018 03:01 |
Radhika_DHS
Messages: 4 Registered: January 2018 Location: India
|
Member |
|
|
Hi
I am computing early initiation of breastfeeding for India and its states using NFHS data set, but my values are not matching with table number 10.5 given in NFHS4 India's report. I have used variable m4 to compute ever breastfed women and the from variable v426 initiation within 1 hr was computed, but after the crosstab, with states, my values are coming a bit different from the report. I have mentioned commands below, looking for your input.
***generating ever breastfed and initiation of breastfeeding variable)
recode m4 (98 94 .=0 "never_bf") (else=1 "breastfeeding"), gen(ever_BF)
ta ever_BF
tab1 v426, nol
recode v426 (0=1 "within 1 hour") (else=0 "more than 1 hour"), gen(initiation_bf)
ta initiation_bf
***cross tab with states (v024)
ta v024 Initiation_bf [iweight=v005/1000000] if ever_BF==1 , r nofr
ta v024 Initiation_bf if ever_BF==1 , r
Radhika
|
|
|