Survival Data Setting in Stata for Neonatal Mortality Determinants [message #20121 is a reply to message #20101] |
Sun, 27 September 2020 08:31 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
shujaat.smc@gmail.com
Messages: 75 Registered: July 2020
|
Senior Member |
|
|
Dear DHS Representative,
I am very much thankful to you for your quick responses.
I am following an article in which the author has mentioned that "The outcome was neonatal deaths recorded as a binary variable. The age of neonatal death was measured in days and for deaths within 24 hours value of 0.01 days was used".
For generating variables to specify my data set in stata as survival data how should I generate the time variable for neonates and specifying a value of 0.01 for death at the day of birth.
Please also comment on the outcome variable I have generated;
gen neonataldeath=1 if b6<=128
replace neonataldeath=0 if b6>=201
Best Regards
Dr. Hussain
|
|
|