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
Git Hub Coding Versus My Code for Tetanus Vaccine Status [message #20489] Wed, 11 November 2020 12:15 Go to next message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear DHS Representative,

For assessing the Tetanus vaccination status of the mother having the most recent birth in the preceding five years before the conduct of the survey (bidx==1) I recode m1 variable as

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

Vs

//tetanus toxoid injections (Shared on Github)

recode m1 (0 1 8 9 . =1 "no") (1/7 = 0 "yes"), gen(rh_anc_toxinj)
recode m1 (0 1 8 9 . =1 "No") (1/7 = 0 "Yes"), gen(rh_anc_toxinj)
replace rh_anc_toxinj = . if age>=period
label var rh_anc_toxinj "Received 2+ tetanus injections during last pregnancy"


Quest: Why the person who had shared the command on Github has used 1 as "no" since this 1 means One dose of vaccine received by the women and also 1 is again there in 1/7 that is 1 here is considered to one dose of vaccine received.

Quest: Is my recoding of m1 is right and why the GitHub programmer/coder has specified if age>=period.

Quest: What will happens to my estimates if I donot use "if age>=period" instead i am using "if bidx==1 & b0==0 & v210!=1" .

I am at the stage of stepwise forward cox model building, therefore request you to kindly reply as soon as possible.

Best Regards

Dr.Hussain

Re: Git Hub Coding Versus My Code for Tetanus Vaccine Status [message #20495 is a reply to message #20489] Thu, 12 November 2020 09:00 Go to previous messageGo to next message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member

Dear Dr. Hussain,

I believe you copied the wrong code from our GitHub site. You also should be using the IR file for this indicator not the KR or BR file.
From the RH_ANC.do file for this indicator, we have:

//tetnaus toxoid injections
recode m1_1 (0 1 8 9 . = 0 "No") (1/7 = 1 "Yes"), gen(rh_anc_toxinj)
replace rh_anc_toxinj = . if age>=period
label var rh_anc_toxinj "Received 2+ tetanus injections during last pregnancy"


The age and period variables are constructed from the RH_age_period.do file. Age is the age of the five and period here is defined as the last five years before the survey. For some indicators the estimate is reported in the last 3 years or last 2 years (check the final report) so we create the variable period so the user can only change it one time. So for IR files it is:
gen age = v008 - b3_01
*if you have b19 in the file you need to use that for age instead so age would be : age=b19_01 .
*only recent surveys have b19
gen period = 60
* 60 is 5 years in months

This is all explained in the main file for chapter 9. The RH_age_period.do file should be run first before running the other do files.
https://github.com/DHSProgram/DHS-Indicators-Stata/tree/mast er/Chap09_RH

Thank you.

Best,

Shireen Assaf
The DHS Program



Re: Git Hub Coding Versus My Code for Tetanus Vaccine Status [message #20497 is a reply to message #20495] Thu, 12 November 2020 09:12 Go to previous messageGo to next message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear Shireen,

Thanks a lot for clearing my confusion. I am using the BR file for my analysis.

Please comment about my recoding;

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


Is above recoding is correct for identifying the tetanus vaccination status of mothers.


Best Regards

Dr. Hussain

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 next 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
Re: Git Hub Coding Versus My Code for Tetanus Vaccine Status [message #20502 is a reply to message #20500] Thu, 12 November 2020 09:40 Go to previous message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear Shireen,

Thanks a lot. I give the code "0" to complete vaccinated women just to have the reference category code=0 (therefore finding the hazard of partially or not vaccinated) this also helps me in making stata do-file easily.

Once again thanks a lot for all your responses.

Best Regards

Dr. Hussain
Previous Topic: Preceding sibling survival status
Next Topic: Comparison Between Birth weight Variable m19 & m18
Goto Forum:
  


Current Time: Thu Mar 28 06:14:47 Coordinated Universal Time 2024