I have some confusion around time-dependent covariates / coefficients. I'm trying to run a cox regression with age as a time-dependent covariate. Lets say the variable is age-at-first-drivers-license (yrs) predicting first crash, among numerous other predictors. Once splitting the file time spans many years for a given id, due to another time-dependent co-variate in the dataset -
[id 1 1 1; age 20 20 20; time 5 10 15]
If I want the effect of age to vary time should I enter age as is, or should it be updated at every interval, age+elapsed time -
[id 1 1 1; newage 20 25 30; time 5 10 15]
I'm basically trying to let the effect of age vary over time, and estimate the time-dependent coefficient. I think my confusion lies in the fact that age and time are perfectly correlated. It seems odd to update it. I hope I've made some sense.
Apologies for the matrix notation.