# Survival Analysis account for repeated measures?

I know from work in mixed effect models and generalized estimation equations that it is important to correct for bias resulting from collecting multiple samples from the same subjects over time.

Looking at the cox proportional hazards model for survival, it is not clear if/how it corrects for the bias resulting from the collection of longitudinal data.

Does a cox model do correct for subject bias due to repeated measurements? Does it need to?

The short answer is that, for a marginal model, the score equations for the regression coefficients turn out to be the same as in the Cox model. What is incorrect are the standard errors. In R with the survival package, you can use the +cluster(id) option in the formula. This provides some "robust" standard errors, and is in the spirit of a GEE-like approach.
For a random effects model, the Cox model can be extended with a "frailty" term. Then, the results are interpreted as conditional on the random effect. This can also be done with the +frailty(id) option, or with the coxme package.
• In fact, at this time there is also a full blown Cox mixed effects model (a frailty model is a very similar to a random intercepts model). See R's coxme package. – Cliff AB Jun 18 '16 at 16:40