The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Immunization
Re: Immunization [message #5647 is a reply to message #456] Fri, 19 June 2015 16:15 Go to previous messageGo to previous message
waqas is currently offline  waqas
Messages: 35
Registered: June 2015
Location: Islamabad, Pakistan
Member

Use following sytax for producing age at time of vaccination.


____________________________________________________________ _______________
dates for survival analysis
____________________________________________________________ __________


Compute CMCB= ((H2Y-1900) * 12) + H2M.
Compute CMCD1= ((H3Y-1900) * 12) + H3M.
Compute CMCD2= ((H5Y-1900) * 12) + H5M.
Compute CMCD3= ((H7Y-1900) * 12) + H7M.
Compute CMCP1= ((H4Y-1900) * 12) + H4M.
Compute CMCP2= ((H6Y-1900) * 12) + H6M.
Compute CMCP3= ((H8Y-1900) * 12) + H8M.
Compute CMCM= ((H9Y-1900) * 12) + H9M.
COMPUTE BAGE=CMCB-B3.
COMPUTE D1AGE=CMCD1-B3.
COMPUTE D2AGE=CMCD2-B3.
COMPUTE D3AGE=CMCD3-B3.
COMPUTE P1AGE=CMCP1-B3.
COMPUTE P2AGE=CMCP2-B3.
COMPUTE P3AGE=CMCP3-B3.
COMPUTE MAGE=CMCM-B3.
Var Lab CMCB "Century Month Code of age at BCG".
Var Lab CMCD1 "Century Month Code of age at DPT1".
Var Lab CMCD2 "Century Month Code of age at DPT2".
Var Lab CMCD3 "Century Month Code of age at DPT3".
Var Lab CMCP1 "Century Month Code of age at POLIO1".
Var Lab CMCP2 "Century Month Code of age at POLIO2".
Var Lab CMCP3 "Century Month Code of age at POLIO3".
Var Lab CMCM "Century Month Code of age at MEASLES".
Var Lab BAGE "Age in months at BCG".
Var Lab P1AGE "Age in months at Polio1".
Var Lab P2AGE "Age in months at Polio2".
Var Lab P3AGE "Age in months at Polio3".
Var Lab D1AGE "Age in months at DPT1".
Var Lab D2AGE "Age in months at DPT2".
Var Lab D3AGE "Age in months at DPT3".
Var Lab MAGE "Age in months at Measles".
EXECUTE.




Enjoy.


Waqas Imran
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vaccination coverage using 2013 ndhs data set: Nigerian & dhs
Next Topic: Antibiotic use for ARI Nepal 2011 (using stata)
Goto Forum:
  


Current Time: Thu Apr 18 09:30:42 Coordinated Universal Time 2024