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 [message #10224] Mon, 11 July 2016 10:26 Go to previous message
nkanagat is currently offline  nkanagat
Messages: 4
Registered: 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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child's age
Next Topic: Reproducing Kenya 2014 DHS immunisation coverage data
Goto Forum:
  


Current Time: Fri Mar 29 00:39:56 Coordinated Universal Time 2024