Vitamin A dose received by children [message #18923] |
Thu, 19 March 2020 12:59 |
mona
Messages: 5 Registered: January 2020
|
Member |
|
|
Hello,
I am trying to calculate % Children age 9-59 months who received a vitamin A dose in last 6 months (%) using NFHS- 4 KR data as given in the factsheet.
On using the code given below, I get 60.07% however in the factsheet it is 60.2% (Link to factseet: http://rchiips.org/NFHS/pdf/NFHS4/India.pdf ; Indicator No. 56). Can someone please review the code and suggest where I am going wrong. I checked the Guide to DHS document as well. It suggested to use cdc date, but in NFHS-4 there is no variable v008a.
Thank you so much in advance!
gen age = v008 - b3
gen month = h33m if h33m < 13
gen year = h33y if h33y <= 2016
gen vitAdosedatecmc = ((year-1900)*12) + month
gen durvitA = v008 - vitAdosedatecmc
gen vitA = 0 if inrange(age,9,59) & b5== 1
replace vitA = 1 if inrange(age,9,59) & b5== 1 & h34 == 1
replace vitA = 1 if inrange(age,9,59) & b5== 1 & durvitA < 7
tab vitA [iw= v005/1000000]
[Updated on: Fri, 20 March 2020 06:30] Report message to a moderator
|
|
|
|