Dear List Members,
I am currently working with a time-to-event dataset for a survival analysis on farmed goats. I wanted to address a particular aspect of the dataset to ensure accurate analysis.
In the dataset, we have recorded the date of birth (dob) for each individual goat. However, for goats that have either died or were sold (censored) before the end of the study, we only have information about the date of death (dod). There is no “dod” information available for goats that are still alive.
To calculate the survival time, I used the following approach:
gen start_date = date(dob, "MDY")
gen end_date = date(dod, "MDY")
gen time = end_date - start_date
In the dataset, dead goats are coded as "1," while goats that were sold (censored) or are still alive are coded as "0." This coding indicates whether an event (death) has occurred or not, respectively. Values for the variables "dod," "start_date," and "end_date" for all the living goats on the farm are currently empty in the dataset’s editor.
Considering this setup, I would greatly appreciate your expertise and insights regarding the appropriateness of my approach. If there are any recommendations or suggestions for proceeding with the analysis to ensure accuracy and reliability, your input would be invaluable. I am using Stata IC v.14.
Thank you for your time and assistance.
Best regards,
Aminu
Dr. Aminu Shittu
Department of Theriogenology and Animal Production
Faculty of Veterinary Medicine
Usmanu Danfodiyo University Sokoto
Sokoto State
Nigeria.
I am currently working with a time-to-event dataset for a survival analysis on farmed goats. I wanted to address a particular aspect of the dataset to ensure accurate analysis.
In the dataset, we have recorded the date of birth (dob) for each individual goat. However, for goats that have either died or were sold (censored) before the end of the study, we only have information about the date of death (dod). There is no “dod” information available for goats that are still alive.
To calculate the survival time, I used the following approach:
gen start_date = date(dob, "MDY")
gen end_date = date(dod, "MDY")
gen time = end_date - start_date
In the dataset, dead goats are coded as "1," while goats that were sold (censored) or are still alive are coded as "0." This coding indicates whether an event (death) has occurred or not, respectively. Values for the variables "dod," "start_date," and "end_date" for all the living goats on the farm are currently empty in the dataset’s editor.
Considering this setup, I would greatly appreciate your expertise and insights regarding the appropriateness of my approach. If there are any recommendations or suggestions for proceeding with the analysis to ensure accuracy and reliability, your input would be invaluable. I am using Stata IC v.14.
Thank you for your time and assistance.
Best regards,
Aminu
Dr. Aminu Shittu
Department of Theriogenology and Animal Production
Faculty of Veterinary Medicine
Usmanu Danfodiyo University Sokoto
Sokoto State
Nigeria.
Comment