Matched Cox Proportional Hazards — Stratified Cox Regression for Matched Designs

Statistics
Introduced by
D. R. Cox (Cox model, 1972); stratification extension for matched designs by subsequent methodologists including D. C. Thomas
Year
1972 (Cox model); matched extension widely adopted 1970s–1980s
Type
Semi-parametric survival regression for matched data
Family
Clinical / epidemiology

What does it do?

Matched Cox proportional hazards is a survival regression method for time-to-event outcomes from matched cohort or matched case-control studies.

It extends the Cox model by stratifying the partial likelihood by matched set, so each matched set has its own unspecified baseline hazard and the matching variables do not enter the estimated hazard ratios directly. The method estimates covariate effects shared across strata, adjusted for the matching and for any additional covariates in the model.

The intuition behind the method

Suppose you have matched pairs of patients, where each treated patient is paired with a control of the same age, sex, and comorbidity profile, and you want to estimate the treatment's effect on survival time. A standard Cox model that includes the matching variables as covariates adjusts for them through the terms you specify, but it assumes a single baseline hazard shared by all subjects, so matched-set differences in baseline risk that are not modelled remain in the estimate. Matched Cox regression treats each matched set as its own stratum: within each stratum the baseline hazard is free to take any shape, so matched-set-level differences in baseline risk are absorbed without being estimated. Only the coefficients for the covariates of interest are shared across strata, and those are what you estimate.

History

The Cox proportional hazards model was introduced by D. R. Cox in a 1972 paper in the Journal of the Royal Statistical Society, Series B. It takes the hazard to be a function of explanatory variables and regression coefficients multiplied by an arbitrary, unknown function of time, and it estimates the coefficients from a conditional likelihood. The stratified form used for matched data, in which each matched set has its own baseline hazard, follows naturally from this framework and is now standard practice in matched survival analyses.

When to use it

Use matched Cox proportional hazards when you have time-to-event data from a matched cohort or matched case-control study and need to estimate adjusted hazard ratios while properly accounting for the matching structure. It is appropriate when the outcome is a time-to-event variable, matching has been performed to control confounding, and the proportional hazards assumption holds within matched strata. Do not use it when the matched sets are very small and events per stratum are sparse — the partial likelihood loses efficiency in that setting and alternative methods (e.g., conditional logistic for binary endpoints, or frailty models) may be preferable. It is not suited to unmatched data; applying the stratified Cox model without actual matched structure wastes degrees of freedom unnecessarily.

Limitations and considerations

  • Loses information on the matched confounders themselves — their effects on survival cannot be estimated because they are absorbed into the stratum-specific baseline hazards.
  • Efficiency decreases as matched strata become small; strata with only one participant or zero events contribute nothing to the partial likelihood.
  • The proportional hazards assumption must hold within each matched stratum, adding complexity to assumption checking in large matched datasets.
  • Requires the investigator to correctly identify all matched strata; incorrect stratum assignment invalidates the analysis.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Correctly accounts for matched-set structure, eliminating bias from matching factors without estimating their effects.
  • Retains the semi-parametric flexibility of Cox regression — no distributional assumption for the baseline hazard within each stratum.
  • Allows additional covariate adjustment beyond the matching variables, enabling multivariable analysis.
  • Hazard ratio estimates are directly interpretable and widely understood by clinical and epidemiological audiences.
  • Can handle variable-ratio matching (1:1, 1:2, 1:M) within the same stratified likelihood framework.

Applications

  • Estimating the effect of a treatment or exposure on survival in propensity-score-matched cohorts, with each matched set serving as a stratum.
  • Analysing time to recurrence in cancer studies in which patients are matched on tumour stage and treatment centre, with the matching variables used as stratifiers.
  • Evaluating device or surgical intervention effects on mortality or readmission in matched hospital administrative data.
  • Studying occupational exposure effects on survival in worker cohorts matched on age, industry, and calendar period.
  • Post-marketing pharmacovigilance studies in which drug users are matched to non-users on age, sex, and comorbidities, with time to an adverse event as the outcome.

How it works

How it works

1

Participants are matched on pre-specified confounders (e.g., age, sex, disease severity) to form matched sets: pairs, triplets, or larger groups. Each matched set contains one or more cases (exposed or treated) alongside one or more controls. Matching balances the matched variables by design, but it does not remove residual confounding from factors that were not used in matching, so covariate adjustment in the model is still needed, and the analysis must respect the matched structure.

2

The Cox model is stratified by matched set. Each stratum s receives its own unspecified baseline hazard function h_{0s}(t), so the model is h_i(t) = h_{0s(i)}(t) exp(beta X_i). Because the baseline hazard is allowed to differ between matched sets without being estimated as parameters, differences in baseline risk between sets do not enter the estimate of beta.

Formula
h_i(t) = h_{0s(i)}(t) \exp(\beta^\top X_i)
3

The regression coefficients beta are estimated by maximising the stratified partial likelihood, which conditions each failure event on the risk set within its own matched stratum. The baseline hazards cancel out of each conditional term, so beta can be estimated without them. The method is justified by the large-sample properties of this estimator rather than by exact unbiasedness; for the exposures under study, this conditional structure is what absorbs the matched-set effects.

Formula
L_P(\beta) = \prod_{s} \prod_{i \in s: \delta_i=1} \frac{\exp(\beta^\top X_i)}{\sum_{j \in R_s(t_i)} \exp(\beta^\top X_j)}
4

Model assumptions are checked on the fitted stratified model. Proportional hazards is assessed with Schoenfeld residuals or log-log survival plots, which can be drawn for each stratum. A common formal test uses Schoenfeld partial residuals: the cox.zph function in R's survival package tests for a linear correlation between the rank order of the failure times and the Schoenfeld residuals, and a significant result for a covariate indicates non-proportional hazards for that covariate. Because each stratum has its own baseline hazard, the proportionality check concerns the shared covariate coefficients, not the baseline hazards, which are not constrained to be proportional across strata. If proportionality fails for a covariate, options include adding a time-by-covariate interaction as a time-dependent covariate, or reporting time-stratified estimates. A non-significant test does not establish proportionality, so inspect the residual plots alongside the test. Influential observations are identified, and the number of events in each stratum is reviewed, since strata with few events contribute little information.

5

Estimated hazard ratios (HR = exp(beta)) describe the multiplicative change in instantaneous event risk per unit increase in a covariate, adjusted for the matching variables and for any additional covariates in the model. Confidence intervals and p-values are derived from the stratified partial likelihood. Because the likelihood compares subjects within each matched set, each HR is a conditional estimate that applies within the matched sets. It is not a standardised or marginal population-average effect, and its generalisation to a wider population depends on the matching design and on the population the matched sets represent. Results are interpreted analogously to standard Cox regression but should be described as conditional on the matched structure.

Common pitfalls

  • Ignoring the matched design and using standard (unstratified) Cox regression — this can produce biased hazard ratio estimates when matched-set differences in baseline risk are not modelled explicitly, because an unstratified model assumes one common baseline hazard across all sets.
  • Treating matching variables as ordinary covariates rather than stratification variables — this partially adjusts for them but does not fully exploit the matched structure and can leave residual confounding.
  • Applying the method when events per matched stratum are extremely sparse — in 1:1 matched pairs with a rare event, many strata contain no events and contribute nothing to the partial likelihood, and strata with few events add little information, so the estimate can become unstable. Count events per stratum before fitting and reconsider the matching ratio or the design if most strata are uninformative.
  • Failing to check the proportional hazards assumption within strata — a violation that is masked by global tests can distort hazard ratio estimates for the covariate of interest.

Frequently asked questions

What is the difference between stratified Cox regression and a frailty model for matched data?

Both address within-cluster correlation in survival data. Stratified Cox regression treats the matched-set effects as nuisance parameters and eliminates them through conditioning, making no distributional assumption about them. Frailty models treat matched-set effects as random variables drawn from a distribution (e.g., gamma or log-normal) and estimate that distribution. Stratified Cox is more robust because it avoids distributional assumptions, but frailty models can be more efficient when the frailty distribution is correctly specified.

Can I use this method with propensity-score matched data?

Yes. Propensity-score matched datasets are a common application. Each matched pair or set forms a stratum, and the stratified Cox model is fitted using matched-set membership as the stratification variable. This properly accounts for the within-pair correlation introduced by the matching and yields valid hazard ratio estimates for the treatment or exposure.

What happens if some matched sets have no events?

Strata without any events contribute nothing to the stratified partial likelihood and are effectively dropped from the estimation. This is expected behaviour and does not bias the estimates, but it does reduce effective sample size and statistical power. If many strata have no events, reconsider the matching ratio or consider whether the event rate is too low for this design.

How do I test the proportional hazards assumption in stratified Cox regression?

The same residual-based tools used for standard Cox regression apply to the fitted stratified model: Schoenfeld residual tests and log-log survival plots, which can be drawn for each stratum. R's survfit and cox.zph functions support stratified models. Interaction terms between a covariate and log-time can be added to test and model non-proportional effects of that covariate.

Does matched Cox regression require 1:1 matching, or can it handle variable ratios?

It handles any matching ratio. Each matched set, whether a pair, a triplet, or a 1:M group, forms one stratum. The partial likelihood sums over events within each stratum regardless of stratum size, so variable-ratio and full-matching designs are accommodated without modification.

Related methods

Sources

  1. Cox, D. R. (1972). Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological), 34(2), 187–202.

    Open DOI reference
  2. Thomas, D. C. (1977). Addendum to: Methods of cohort analysis: Appraisal by application to asbestos mining. Journal of the Royal Statistical Society: Series A, 140(4), 483–485.

    Open publication reference
  3. 2015_Book_RegressionModelingStrategies, p. 519