The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Timeliness of measles vaccination
Timeliness of measles vaccination Mon, 11 July 2016 10:26
 nkanagat Messages: 4Registered: July 2016 Location: Seattle, WA Member
Hello,

I am trying to calculate the timeliness of the measles vaccination in Tanzania from the DHS 2010 dataset, KR file. I need to calculate whether the measles vaccine was given early (before 9 months) on time (9 months) or late (after 9 months).

I have set up the following code:

**Healthcard
gen healthcard=.
replace healthcard = 1 if h1 == 1
replace healthcard = 0 if inlist(h1, 0, 2, 3)
replace healthcard = . if h1 == 9

*generate age of each child in months
g age=v008-b3
g wgt=v005/1000000

ta age if age>=12 & age<=23 & b5==1 [iw=wgt]

**Measles
recode h9 (0 2 3 8 9=0 "no") (1=1 "yes"), g(measles)
ta measles if age>=12 & age<=23 & b5==1 [iw=wgt]

**Timeliness by month
recode h9m ( 1 2 3 4 5 6 7=0 "early") (9=1 "timely") (10 11 12=2 "late"), g (timely)
ta measles timely

In order to examine the timeliness of measles, is this the best way to set up my variables in stata?

Thank you,
Natasha

[Updated on: Mon, 11 July 2016 14:45]

Report message to a moderator

 Timeliness of measles vaccination By: nkanagat on Mon, 11 July 2016 10:26 Re: Timeliness of measles vaccination By: Liz-DHS on Tue, 12 July 2016 13:38 Re: Timeliness of measles vaccination By: nkanagat on Tue, 12 July 2016 16:46 Re: Timeliness of measles vaccination By: nkanagat on Fri, 21 October 2016 10:31 Re: Timeliness of measles vaccination | Table 10.4 Zambia DHS By: nkanagat on Fri, 21 October 2016 12:59
 Previous Topic: Child's age Next Topic: Reproducing Kenya 2014 DHS immunisation coverage data
Goto Forum:

Current Time: Fri Mar 1 12:31:17 Coordinated Universal Time 2024