I'm working on a cox regression to analyse the association between an exposure and outcome. I also have a start time (time start for follow-up) and end time (time when getting the outcome or censored). So the model is written like this in R:
model <- coxph(Surv(start, end, outcome) ~ 1 + exposure + strata(gender), robust = TRUE, data=my_data)
I have a big sample 10.000+ for people born between 1997 and 2011. The follow-up is also starting from 1997 to 2011.
- The exposure is registered in the system from 1997 (it's a diagnosis that you cold get from birth).
- The outcome is registered in the system from 2004 (it's a diagnosis that can only be detected later in life).
Meaning I would have fx, individuals in my sample that were born in 1997 with the exposure, but their risk for getting the outcome, would start from 2004 as it was not possible to register that in the system before 2004, (meaning they would be 7 years old before they get the outcome registered, even though they may got the outcome before the age of 7). At the same time I would have individuals born fx in 2003 with the exposure, and their risk of getting the outcome start from when they are 1 year old.
What should I do with that kind of data? Can I minimise bias, by adjusting for age in the model ?
Thanks in advance!
Update: As a response to EdM comment on what time = 0
is in my case.
My data is a type of data where the individuals have multiple row pr. person. Meaning those who got the outcome has two rows. Here is an example for an individual with two rows in my dataset:
- First row for an individual: start time is when they are able to get the outcome (from the age of 1), meaning that is where there follow-up start
time = 1
, and the end time is when they got the outcome during follow up, fx the person got the outcome at age 4 --> this row indicates the contributing time interval for that individual to the studyoutcome = 0
- second row for the same individual: start time is 4 and end time would still be 4 --> this row indicates that the person got the outcome at age of 4
outcome = 1
An example for those individuals that did not get the outcome, they have one row each
- Fx start time for an individual would still be 1 (as the outcome can only be observed from the age of 1) and the end time will be end of follow-up or due to other competing risks --> this row indicates that the person did not get the outcome
outcome = 0
as well as the contributing time interval to the study.
IMPORTANT It just occurred to me that I have written some misleading information at the begning of my Q. The correct information is the following:
- The follow-up starts at 2004 (where the outcome is able to be registered in the system). The follow-up ends at 2011.
- The people in my sample are born between 1997 and 2009.
- The exposure information is able to be registered from 1997.
- Just to recap, my Q is, people that are born in 1997 with the exposure, and if they also get the outcome, they would first be registered as getting the outcome in 2004, even though they potentially got it before 2004. So there would be a 6 years gab before they can be reported as getting the outcome (as the outcome can be observed from the age at 1).
- The people born at 2004 with the exposure, are able to get the outcome registered already a year after birth. So they would contribute with a lower time interval in the analysis.
What I am confused about is: would that be a problem in the analysis? That some contributes to a longer time interval - not due to natural causes, but due to the issue of reporting the outcome in the system? and some are able to contributing to a lower time interval due to natural causes. Would my HR estimate be to biased?
time = 0
for the survival analysis. Is that the date of birth or some other time reference? Please provide that information by editing the question, as comments are easy to overlook and can be deleted. $\endgroup$