Calculating for children less than 23 months [message #9260] |
Sun, 28 February 2016 16:57 |
|
Daer all,
I'm trying to calculate for the number of youngest child under two years living with their mother. But the figures I get do not correspond with those in the report; thus Table 11.3: Breastfeeding status by age. I am using the children file of Ghana DHS 2014. Any help. Thanks.
Below is the Stata code I used.
clear
keep if midx==1&b9==0&hw1<24
tab hw1
recode hw1(0/1=1 "0-1")(2/3=2 "2-3")(4/5=3 "4-5")(6/8=4 "6-8")(9/11=5 "9-11")(12/17=6 "12-17")(18/23=7 "18-23")(24/59=.), gen(child_age)
tab child_age
tab child_age[w=v005]
|
|
|
|
|
Re: Calculating for children less than 23 months [message #9369 is a reply to message #9295] |
Mon, 21 March 2016 07:13 |
|
Dear Trevor,
Please, from the previous response (on calculating child age), I tried to get exclusively breastfed children but my figures were different from the report. Any help on what I did not do right?
Thus after running the commands for children ages (0-23m), I followed that with:
*The number of times the children received anything to eat
///aside from breast milk, including both meals and snacks///
//Children who are being exclusively breastfed are coded 0
tab m39
*Recoding m39 to get exclusively breastfed and not exclusively breastfed
recode m39(0=0 "excl")(1/8=1 "no_excl"), gen(excl_brst)
tab excl_brst
*adding sample weight
tab excl_brst [iw=v005/1000000]
*crosstab with children (0-23m)
tab child_age excl_brst
tab child_age excl_brst, row nofreq
tab child_age excl_brst [iw=v005/1000000], row nofreq
|
|
|