If I have a biomarker time-dependent variable sampled as a whole time serie, instead of few repeated measurements, and I want to fit a joint model to predict time-to-event as a function of the time-dependent biomarker, does it make sense to add a AR(1) covariate (i.e., the response variable itself lagged back of a period) in the longitudinal mixed submodel, as a fixed or random effect? Would this bias the joint model? Would its predictions be reliable? Would it cause data leakage or other statistical issues, being it an endogenous covariate?
What about adding an estimation of the stochastic trend and seasonality of the time serie as fixed effects in the mixed model?
EDIT:
Thank you very much @EdM for your response! I posted a longer question yesterday, which contained more details, but I thought it would be too long and messy for anyone to read it. Also, you would notice that the covariate isn't in fact a biomarker, in my case, but rather an endogenous variable from a point process.
To specifically answer your questions:
- The event (withdrawal of a student from the course) can occur either never or once
- Is not clear to me what is meant with "time reference"; I am still self-learning the topic. If it refers to the time period in which data are collected, and what is the horizon of interest for my predictions, I can say that I am interested in dynamic predictions of the time-to-event during a span of 240 days. Say the first 30 days are passed since the start of the online course, I would like to get predictions for the remaining 210 days. Say another 30 days pass, I would like to update my predictions for the remaining 180 days. And so on.
- As for the survival submodel, I was thinking of using the Cox Proportional Hazard model, combined with the KM-curve for the estimation of the baseline hazard
There are few particular traits in my case that may be worth noting:
- There are no censored observations. No one is "lost at follow up", data about each individual (student) are recorded from the start of the course until they either do the final exam or withdraw from the course (withdrawal is the event of interest!)
- The proportion of individuals who experience the event is a minority (about 25%)
- The students are observed contemporarily during the time span of the online course: time=0 is the start of the course, so it denotes the same calendar day for student j as for student i.
- As said, the repeated measures consist of a daily time serie for each student, tracking the total clicks he made each day. There are no missing values, the e-learning website recorded all of their activity during their study time.
I don't know if I should remove the other question I asked and leave just this one, or modify them in any way to better stick to rules of the forum. Please, let me know if anything isn't clear, and thank you again for your kindness!
in practice my model is: mixed_model(fixed = y ~ level + y.lag1, random = ~ time | id_student, data = dts7, family = zi.negative.binomial, zi_fixed = ~0 + level + seasonality + y.lag1 , zi_random = ~ time | id_student)