- Introduced by
- Building on Kaplan & Meier (1958) and Cox (1972); matching framework formalised in observational study design literature (Rosenbaum & Rubin, 1983)
- Year
- 1983 (propensity-score matching); applied to survival outcomes throughout 1990s–2000s
- Type
- Observational study analytic method
- Family
- Clinical / epidemiology
What does it do?
Matched survival analysis combines a matching design, usually propensity score matching or exact matching on key covariates, with time-to-event methods such as Kaplan-Meier estimation and Cox proportional hazards regression.
Exposed and comparison subjects are paired on observed covariates before survival curves or hazard ratios are estimated. This reduces bias from those measured confounders in non-randomised cohort or registry data, but it does not address confounding by variables that were not recorded.
The intuition behind the method
Suppose you want to compare survival after two surgical techniques using hospital registry data. Patients were not randomly assigned: those who received technique A may be younger, healthier, or treated at higher-volume centres. Matched survival analysis first forms balanced pairs, so that each technique-A patient is paired with a technique-B patient who is similar on age, comorbidity score, and centre volume. Standard survival tools, Kaplan-Meier curves, log-rank tests and Cox models, are then applied to the matched data. The matching step is what makes the survival comparison fairer, because the groups are compared on similar patients rather than on the full, unbalanced cohort.
History
The Kaplan-Meier estimator (1958) and Cox's proportional hazards model (1972) were developed independently of matching. The propensity score framework is attributed to Rosenbaum and Rubin (1983), which made principled matching in observational studies possible. Applying these survival methods to matched data was taken up in applied epidemiology from the 1990s onward. Balance assessment for propensity-matched samples is treated in Austin (2014), and multilevel extensions of survival analysis for clustered data are covered in Austin (2017).
When to use it
Choose matched survival analysis when you have observational time-to-event data with censoring, a clear treatment or exposure contrast, and measured confounders that plausibly explain the group differences, and when randomisation was not feasible. The matched sample must remain large enough to achieve good balance and to observe events. As a rough convention, at least 50 to 100 matched pairs is often suggested, but this is not a formal threshold. Do not use it when important confounders were not recorded (instrumental variable methods or sensitivity analyses for hidden bias are more appropriate), when the number of covariates is large relative to the sample so that propensity models and balance become unstable, when proportional hazards is badly violated and no remedy is planned, or when matching discards so many subjects that the remaining sample no longer represents the population of interest.
Limitations and considerations
- Controls only for measured covariates. Unmeasured or unknown confounders remain a threat to validity and should be assessed with sensitivity analyses, such as the E-value or Rosenbaum bounds.
- Matching typically discards unmatched subjects. This reduces statistical power and changes the population the estimate applies to, which is the matched subset rather than the full cohort.
- The Cox model's proportional hazards assumption must be checked. Violations call for time-varying coefficients, stratified models, or alternative summaries such as restricted mean survival time.
- With many covariates and a small sample, propensity score estimation can be unstable, and balance may remain poor even after matching.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Reduces bias from measured covariates without requiring a fully specified outcome model for the survival comparison, so the matched contrast rests on balanced groups rather than on model extrapolation.
- Balance diagnostics (SMDs and balance plots) can be inspected before any survival result is seen, which separates the design step from the outcome analysis.
- Kaplan-Meier curves for the matched groups show when survival differences emerge and whether they persist, not only whether they exist.
- The stratified log-rank test and robust Cox model account for the within-pair correlation that matching introduces.
- The choice of matching algorithm (propensity score, exact, Mahalanobis) lets the analyst match on the covariates that matter for the clinical question.
Applications
- Comparing post-operative mortality or complication-free survival between two surgical techniques using national clinical registries.
- Evaluating the survival benefit of a new drug versus standard therapy in pharmacoepidemiology studies drawn from electronic health records.
- Assessing time to hospital readmission or time to disease progression in comparative effectiveness research when randomised trial data are unavailable.
- Examining cancer-specific survival differences between screening-detected and symptom-detected cases in population-based cancer registries.
- Studying time to cardiovascular events in matched cohorts of patients with and without a comorbid condition such as diabetes or hypertension.
How it works
How it works
Subjects in the treatment or exposure group are matched to comparison subjects. The most common strategy is propensity score matching: a logistic regression estimates each subject's probability of exposure from measured covariates, and exposed subjects are paired with controls whose propensity score falls within a caliper. A caliper of 0.2 times the standard deviation of the logit is a frequently used convention, not a validated threshold, so the caliper chosen should be reported together with the matching algorithm. Other options include exact matching on key variables, Mahalanobis distance matching, and coarsened exact matching. The matching ratio may be 1:1, 1:2, or many-to-one, and the choice affects how many subjects are retained.
Covariate balance is checked after matching and before any survival outcome is analysed. The standardised mean difference (SMD) for each covariate should ideally be below 0.10. Love plots or before-and-after plots of absolute SMDs give a visual summary. If balance is inadequate, the caliper, the covariate set, or the matching algorithm is revised and matching is repeated.
Kaplan-Meier survival curves are estimated separately for each matched group using the product-limit estimator, which uses censored subjects (those without the event by the end of follow-up) for the periods in which they were observed. Pointwise confidence intervals are typically computed with Greenwood's formula. Greenwood's formula assumes independent subjects, and matched subjects are not independent, so these pointwise intervals should be treated as approximate. Formal inference on the matched comparison rests on the stratified log-rank test and on a Cox model with a robust variance, as described below.
Group differences are tested with the stratified log-rank test, in which each matched pair forms a stratum, so that subjects are compared only within their pair. The unstratified log-rank test ignores the pairing and is not appropriate for this design, since it can inflate the Type I error rate. The output is a chi-square statistic and p-value for the global null hypothesis that the two survival curves are equal.
To adjust for residual imbalance or to estimate a covariate-adjusted hazard ratio, a Cox proportional hazards model is fitted to the matched sample. The model uses either a robust (sandwich) variance estimator that accounts for within-pair correlation, or matched pairs entered as strata. The hazard ratio and its 95% confidence interval describe the relative rate of events between groups, conditional on the covariates in the model and under the proportional hazards assumption.
Common pitfalls
- Using the unstratified log-rank test or an ordinary (non-robust) Cox model on matched data. These ignore the pairing, can inflate Type I error, and produce overly narrow confidence intervals.
- Proceeding directly to survival analysis without checking balance after matching. Undetected imbalance means the matched groups are still confounded and the comparison is misleading.
- Discarding censoring information by treating censored subjects as events or excluding them. Censoring must be handled by the Kaplan-Meier and Cox estimators, not by ad-hoc exclusion.
- Reporting only the log-rank p-value without Kaplan-Meier curves or a hazard ratio with its confidence interval. The size and timing of survival differences matter as much as statistical significance.
Frequently asked questions
Why use the stratified log-rank test rather than the ordinary log-rank test on matched data?
Matching creates pairs (or sets) of subjects who are intentionally similar, so they are not independent observations. The ordinary log-rank test assumes independence and can underestimate variance when applied to matched data, which inflates the Type I error rate. The stratified log-rank test treats each matched pair as a stratum, so comparisons are made within pairs and the within-pair correlation is taken into account.
How do I handle ties in survival times within matched pairs?
Ties are handled by the tie-breaking options in Kaplan-Meier and Cox software: the Breslow, Efron, or exact methods. Matching does not change this choice, so the same guidance as for unmatched survival analysis applies. Efron's approximation is a common default in many statistical packages.
What if my Cox model violates the proportional hazards assumption after matching?
First confirm the violation with Schoenfeld residual plots and the global proportional hazards test. If it is violated, options include adding time-by-covariate interaction terms, using a stratified Cox model, reporting restricted mean survival time (RMST) differences as an alternative summary, or using flexible parametric models. Report the violation and justify the remedy you choose.
Can I use inverse probability of treatment weighting (IPTW) instead of matching for survival outcomes?
Yes. IPTW is a related propensity-score method that keeps all subjects by weighting each observation by the inverse of the probability of receiving its actual treatment. For survival outcomes, IPTW can be combined with weighted Kaplan-Meier curves or a weighted Cox model. Matching and IPTW target the same confounding problem. The choice depends on the estimand (matched population or full population) and on the available sample size.
How large a sample do I need for matched survival analysis?
There is no universal rule. You need enough matched pairs to achieve good covariate balance (at least 50 to 100 matched pairs is often suggested as a rough convention) and enough events for stable survival estimation and Cox model fitting. A commonly quoted heuristic is about 10 events per covariate in the Cox model. These figures are conventions and rules of thumb rather than tested thresholds. Very small matched samples give wide confidence intervals and unstable Kaplan-Meier estimates, particularly when few events are observed.
Related methods
Sources
Austin, P. C. (2014). Graphical assessments of the balance of propensity score matched samples: A SAS macro. Journal of Statistical Software, 58(7), 1-29. Also see Austin, P. C. (2017). A tutorial on multilevel survival analysis: Methods, models and applications. International Statistical Review, 85(2), 185-203.
Open publication referenceCollett, D. (2015). Modelling Survival Data in Medical Research (3rd ed.). CRC Press.
ISBN: 9781439856789