Git Hub Coding Versus My Code for Tetanus Vaccine Status [message #20489] |
Wed, 11 November 2020 12:15 |
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
|
|
|
|
|
|
|