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]
|
|
|