Re: Timeliness of measles vaccination [message #11052 is a reply to message #10246] |
Fri, 21 October 2016 10:31 |
nkanagat
Messages: 4 Registered: July 2016 Location: Seattle, WA
|
Member |
|
|
Hi again,
I want to replicate Table 10.4 Vaccinations in the first year of life. Percentage of children age 12-59 months at the time of the survey who received specific vaccines by age 12 months, Zambia 2013-14 Link to table: https://www.dhsprogram.com/pubs/pdf/FR304/FR304.pdf
I am using the KR file.
I have the code below.
*calculating age at measles immunization, in months, for those children with non-missing date; dob defined above in dpt3 code
set more off
tab1 h9*
gen h9d_rev=h9d
replace h9d_rev=. if h9d>31
gen h9m_rev=h9m
replace h9m_rev=. if h9m>12
gen h9y_rev=h9y
replace h9y_rev=. if h9y>v007
gen h9_mdy=mdy(h9m_rev,h9d_rev,h9y_rev)
gen dob_mdy=mdy(b1,hw16,b2)
* "exact" age in months; the average days in a month is 365.25.12 = 30.4375
gen h9_age_in_months=(h9_mdy-dob_mdy)/30.4375
summarize h9_age_in_months
tab h9_age_in_months
* completed age in months
gen h9_completed_age_in_months =int(h9_age_in_months)
summarize h9_age_in_months
tab h9_completed_age_in_months
gen timely=.
replace timely =1 if h9_completed_age_in_months <12
replace timely = 0 if h9_completed_age_in_months >=12
tab timely h9_completed_age_in_months
tab timely if age2>=12 & age2<=23 & b5==1 [iw=wgt]
tab timely if age2>=12 & age2<=59 & b5==1 [iw=wgt]
I compared my output for children between the ages of 12-23 at the time of survey who received measles by age 12 months to table 10.4.
I got 56.34 to 72.5 in the table.
Not sure why there is a difference.
Thanks,
Natasha
|
|
|