- Introduced by
- D. R. Cox (base model); risk-adjustment as routine practice formalised through clinical epidemiology literature from the 1980s onward
- Year
- 1972 (Cox model); risk adjustment widespread from 1980s
- Type
- Multivariable survival regression
- Family
- Clinical / epidemiology
What does it do?
Risk-adjusted Cox proportional hazards regression extends the Cox (1972) survival model by entering known confounders, such as age, sex, comorbidities and disease severity, alongside the exposure of primary interest.
The fitted model estimates the association between the exposure and the hazard of an event while holding those covariates fixed, which reduces distortion from baseline differences between comparison groups. It is a widely used approach for multivariable time-to-event analysis in clinical and epidemiological research.
The intuition behind the method
Suppose you want to compare survival after two surgical procedures, but patients who received one procedure are, on average, older and sicker. A simple survival curve comparison would be misleading because differences in outcomes might simply reflect the different mix of patients, not the procedures themselves. Risk-adjusted Cox regression solves this by mathematically holding those baseline differences constant. Think of it as asking: if all patients had the same age, sex, and comorbidity profile, what would the hazard ratio between the two procedures be? The model estimates exactly that quantity — an adjusted HR — from the observed data without requiring matched or stratified groups.
History
David Cox introduced the proportional hazards model in a 1972 paper in the Journal of the Royal Statistical Society, Series B. In it, the hazard is a function of explanatory variables and unknown regression coefficients, multiplied by an arbitrary, unknown function of time, and inference rests on a conditional likelihood that does not require specifying the baseline hazard. The model is described for one or more explanatory variables, so adjustment for several covariates is part of the original framework. The paper also outlines some generalizations.
When to use it
Use risk-adjusted Cox regression when the question concerns the association between an exposure (a treatment, risk factor or biomarker) and the time to an event, and when baseline differences between groups could confound that association. It is a common choice when follow-up times vary, censoring is present, and several confounders must be controlled at once. Do not use it when PH is clearly violated for the primary exposure and no time-dependent extension is feasible. Avoid it when events are few relative to covariates. A commonly used heuristic is roughly 10–15 events per covariate, but the number of events needed for stable estimates depends on the covariate distributions and the amount of censoring, so the heuristic should not be applied mechanically. Use Fine-Gray or cause-specific competing risks models when competing events dominate the outcome process, and consider parametric accelerated failure-time models when the survival time distribution itself is of interest.
Limitations and considerations
- The model assumes that each HR stays constant over time. If an effect changes over follow-up, the single HR is misleading, and the model must be extended with time-dependent coefficients or stratification.
- Estimates become unstable when events are sparse relative to the number of covariates, and confidence intervals can widen substantially when the event count is low for the covariates included. A commonly used heuristic of roughly 10–15 events per covariate is a guide only.
- Only measured covariates are adjusted for. Unmeasured confounding is not addressed by the model and requires design or analytic strategies beyond covariate adjustment.
- Multiple competing event types, such as different causes of death, cannot be distinguished by the standard model; a competing risks analysis is required.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Because the baseline hazard is unspecified and the partial likelihood is used, the model needs no distributional assumption for survival times, and right-censored observations contribute naturally to the estimates.
- Several confounders are adjusted for at once, so the exposure HR is interpreted conditionally on them. This reduces confounding by the included measured covariates; residual confounding from unmeasured or imperfectly measured factors remains.
- The output is a hazard ratio for each covariate, a ratio of instantaneous event rates that is straightforward to compare across studies that use the same model.
- Schoenfeld residuals allow the PH assumption to be checked covariate by covariate, which helps identify which effects need a time-dependent or stratified treatment.
Applications
- Estimating the adjusted effect of a new drug or surgical procedure on time to death or readmission in observational databases.
- Identifying independent prognostic factors, such as age, stage or biomarker level, for disease-specific survival in cancer registry studies.
- Assessing occupational or environmental exposures, such as smoking, radiation or chemical agents, on disease incidence after adjusting for lifestyle and demographic confounders.
- Comparing centre-level or hospital-level outcomes in quality-of-care research after adjusting for differences in case mix.
- Pharmacovigilance studies that relate adverse drug reactions to time on treatment, adjusting for indication bias.
How it works
How it works
Specify the time-to-event outcome (for example death, hospital readmission or disease recurrence), the time origin, and the censoring rule. Patients who have not had the event by the end of follow-up contribute partial information up to their censoring time. The standard Cox analysis assumes that censoring is non-informative; if patients leave follow-up because of their risk of the outcome, the estimates can be biased.
Identify covariates that are clinically established confounders or that are associated with both the exposure and the outcome. Selection should be guided by prior knowledge; data-driven searching over a large covariate set increases the chance of spurious associations. Typical adjusters in clinical studies include age, sex, disease stage, a comorbidity index such as the Charlson score, and treatment centre.
Fit the semiparametric Cox model, in which the hazard at time t for individual i is h(t) = h_0(t) exp(beta_1 x_1 + ... + beta_p x_p). The baseline hazard h_0(t) is left unspecified, and the coefficients are estimated by maximising the partial likelihood, so no distribution for survival times is assumed. The proportional hazards (PH) assumption, that each covariate's effect on the hazard is constant over time, must still hold.
Formula
h(t) = h_0(t) \exp(\beta_1 x_1 + \beta_2 x_2 + \cdots + \beta_p x_p)
Check the PH assumption for each covariate using Schoenfeld residual plots or the Grambsch-Therneau test. If PH fails for a covariate, options include a time-dependent coefficient, a stratified Cox model (stratifying on the violating variable so that its HR is not estimated), or a parametric alternative such as the Weibull accelerated failure-time model.
Exponentiate each coefficient to obtain an adjusted hazard ratio, HR = exp(beta_k). An HR above 1 means a higher instantaneous event rate per unit increase in x_k, with the other covariates held constant. Report 95% confidence intervals and p-values. All estimates are conditional on the covariates included in the model.
Formula
\mathrm{HR} = \exp(\hat{\beta}_k)Present the fully adjusted HR for the primary exposure together with the HRs for the other covariates, in a table or forest plot. Report the number of events and the person-time at risk, the model's concordance (Harrell's C-statistic), and the results of the PH checks. Distinguish adjusted from unadjusted estimates, and use sensitivity analyses with alternative covariate sets to show how robust the exposure estimate is.
Common pitfalls
- Ignoring the PH assumption: entering a time-varying exposure as a fixed covariate, or not testing PH for the confounders, yields biased and hard-to-interpret hazard ratios.
- Overfitting through covariate overload: including many covariates relative to the number of events inflates spurious associations. Pre-specify the adjusters from clinical knowledge, or use LASSO-penalised Cox regression.
- Treating informative censoring as non-informative: if patients withdraw because they are deteriorating, the standard estimates are biased. Sensitivity analyses or joint models are needed to assess this.
- Reading the HR as an absolute or cumulative risk ratio: it compares instantaneous event rates. Under proportional hazards, the cumulative risk for a covariate pattern is a power of the baseline survival, so the ratio of cumulative risks changes with follow-up time and with the baseline event frequency. Report cumulative incidence at fixed time points, using Kaplan-Meier estimates or model-predicted estimates, alongside the HR.
- Reporting only the exposure coefficient: a valid model also requires checks of residuals, influential observations, and the linearity of continuous covariates, for example with martingale residuals or restricted cubic splines.
Frequently asked questions
How is risk-adjusted Cox regression different from a plain Cox model?
A plain (unadjusted) Cox model estimates the raw association between one exposure and survival. Risk adjustment enters known confounders, such as age, sex and comorbidities, as additional covariates so that their influence is statistically controlled. The HR for the exposure then describes the association when the covariate values are held fixed, which makes group comparisons fairer, though only for the confounders that were measured.
What do I do if the proportional hazards assumption fails?
The options depend on which covariate fails and how severely. If a confounder violates PH, stratify the model on that variable, so that its effect is absorbed into stratum-specific baseline hazards rather than estimated as a single HR. If the primary exposure violates PH, add a time-by-exposure interaction term, which makes the coefficient time-dependent, or switch to a parametric accelerated failure-time model that lets the effect vary over time.
How many covariates can I include?
A commonly used heuristic is roughly 10–15 events per covariate in the model. Events drive the precision of the partial likelihood estimates, so when the number of events is small relative to the covariates, the estimates become unstable and the confidence intervals widen. The heuristic is only a guide: the adequate number depends on covariate distributions and the amount of censoring. If you have many candidate covariates but few events, consider LASSO-penalised Cox regression or restrict the model to the clinically essential adjusters.
Can I use this method with recurrent events?
The standard Cox model assumes a single event per subject. For recurrent events, such as repeated hospitalisations or exacerbations, extensions are needed. The Andersen-Gill model treats each event as a new observation in a counting-process framework, while the Wei-Lin-Weissfeld marginal model and the Prentice-Williams-Peterson model offer alternative formulations that make different assumptions about dependence within subjects.
What is Harrell's C-statistic and why does it matter?
Harrell's C-statistic (concordance index) measures how well the fitted Cox model discriminates between subjects: it is the probability that a subject who had the event earlier has a higher predicted risk than a subject who had it later. A value of 0.5 corresponds to no discrimination beyond chance. No single cut-off defines acceptable discrimination, so interpret the value in the context of the clinical application and report calibration checks alongside it.
Related methods
Sources
Cox, D. R. (1972). Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological), 34(2), 187–202.
Open DOI referenceHosmer, D. W., Lemeshow, S., & May, S. (2008). Applied Survival Analysis: Regression Modeling of Time-to-Event Data (2nd ed.). Wiley.
ISBN: 978-0471754992