Cox Regression with Time-Varying Covariates
Also known as: time-varying covariate Cox model, extended Cox model, Zamana Bağlı Kovaryatlı Cox Regresyonu
Time-dependent Cox regression is an extension of the standard Cox proportional hazards model, introduced through the counting-process formulation developed by Therneau and Grambsch (2000), that allows one or more predictor variables to take different values at different points in a subject's follow-up period. It is the method of choice whenever a covariate — such as a laboratory measurement, a medication dose, or a disease severity score — changes over time rather than remaining fixed from study entry.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use time-dependent Cox regression when your data contain covariates that change value during follow-up and you cannot reduce them to a single baseline summary without losing important information. Typical scenarios include repeated laboratory measurements, time-varying treatment or drug exposure, cumulative exposure metrics, and scores of disease activity measured at clinic visits. The data must be restructured into long format with one row per interval per subject. The minimum practical sample size is around 50 subjects with sufficient events, because the model must estimate coefficients across many intervals. The non-informative censoring assumption of standard Cox regression carries over here. Be alert to endogeneity: if a time-varying covariate is itself influenced by the outcome process (for example, a biomarker that deteriorates because the subject is approaching death), causal interpretation requires extra care and a joint model may be more appropriate.
Strengths & limitations
- Captures the time-varying nature of covariates, producing estimates that reflect the true covariate-hazard relationship rather than a diluted baseline snapshot.
- Retains the semi-parametric flexibility of standard Cox regression — the baseline hazard is left unspecified.
- Directly handles right-censoring via the counting-process framework without any modification to the statistical theory.
- Applicable across domains wherever repeated measurements accompany a time-to-event outcome.
- Requires data in long format (start–stop structure), which can be error-prone to construct; mistakes in restructuring silently distort results.
- A minimum of approximately 50 subjects with adequate event counts is needed; with fewer data the time-interval coefficients become unstable.
- Endogenous (internally generated) time-varying covariates, such as a biomarker driven by the outcome, violate causal interpretability; a joint model is then preferable.
- The proportional-hazards assumption still applies within each interval, and violation is harder to diagnose than in the standard Cox model.
Frequently asked
What is a time-varying covariate?
A time-varying (or time-dependent) covariate is a predictor whose value is not fixed at study entry but changes over the course of follow-up. Examples include laboratory values measured at each clinic visit, changes in medication, and accumulating exposure levels. In contrast, fixed covariates such as sex or baseline age take a single value for the entire follow-up.
How does this differ from standard Cox regression?
Standard Cox regression uses a single covariate value per subject, measured at baseline, and assumes it remains constant. Time-dependent Cox regression uses the covariate value current at each event time in the partial likelihood, requiring the data to be restructured into multiple rows per subject covering consecutive time intervals.
When should I prefer a joint model over time-dependent Cox?
When the time-varying covariate is endogenous — meaning it is part of the biological or disease process leading to the event — standard time-dependent Cox regression produces biased estimates and cannot support causal inference. A joint model simultaneously models the longitudinal trajectory of the biomarker and the survival process, properly accounting for their dependence, and is therefore the method to prefer in that situation.
How do I structure my data for this model?
Each subject's follow-up must be expanded into one row per interval during which all covariates remain constant. Each row needs a start time (left endpoint of the interval, exclusive), a stop time (right endpoint, inclusive), and an event indicator that is 1 only in the last row if the subject experienced the event at the stop time. All other rows have an event indicator of 0.
Sources
- Therneau, T. M. & Grambsch, P. M. (2000). Modeling Survival Data: Extending the Cox Model. Springer. DOI: 10.1007/978-1-4757-3294-8 ↗
How to cite this page
ScholarGate. (2026, June 1). Cox Regression with Time-Varying Covariates. ScholarGate. https://scholargate.app/en/survival/time-dependent-cox
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Frailty ModelSurvival↔ compare
- Joint Model for Longitudinal and Survival DataSurvival↔ compare
- Kaplan-MeierSurvival↔ compare
- Royston-Parmar ModelSurvival↔ compare