The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Git Hub Coding Versus My Code for Tetanus Vaccine Status
Re: Git Hub Coding Versus My Code for Tetanus Vaccine Status [message #20500 is a reply to message #20497] Thu, 12 November 2020 09:20 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

We do not code this indicator as partially or completely vaccinate. However you could do that if you wish. What confuses me in your code is giving the value zero to those who were vaccinated and 1 to those who are not. I would code it this way:

recode m1 (0 8 9 . =0 "NotVaccinated") (1=2 "PartiallyVaccinated") (2/7=1 "CompletelyVaccinated"), gen (TetanusVaccination)


Best,

Shireen Assaf
The DHS Program
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Preceding sibling survival status
Next Topic: Comparison Between Birth weight Variable m19 & m18
Goto Forum:
  


Current Time: Tue Jul 9 18:28:09 Coordinated Universal Time 2024