Author-reviewedEvidence: highv1.0.2

Cox Proportional Hazards

The Cox proportional hazards model is a semi-parametric survival regression that estimates hazard ratios without specifying the baseline hazard.

Last reviewed byDr Darrin Baines

Concept Architecture

Cox Proportional Hazards Model in Health Economic Evaluation

The Cox proportional hazards model, or Cox regression, published by Cox in 1972, is the standard method for estimating how treatment and patient characteristics change the rate of death, progression or another event in a clinical study, and many of the hazard ratios quoted in trial reports and health technology assessment submissions come from it. Covariate effects are estimated from the order of events among people still at risk, so no distribution of survival times is assumed. Bradburn and colleagues called it the most commonly used multivariate approach for survival data in medical research. For a health economist the model matters because its estimates feed lifetime survival extrapolations, yet the fitted model by itself describes survival only within observed follow-up.

How covariates scale an unspecified baseline hazard

The model links the hazard rate, the event rate among people still event-free, to explanatory variables such as treatment arm, age or disease stage. Cox's 1972 paper takes the hazard to be a function of the explanatory variables and unknown regression coefficients multiplied by an arbitrary and unknown function of time. The model is

h(t∣x)=h0(t)exp⁡(β1x1+β2x2+⋯+βpxp),h(t\mid x)=h_0(t)\exp(\beta_1x_1+\beta_2x_2+\dots+\beta_px_p),

where h(t∣x)h(t\mid x) is the hazard at time tt for a person with covariate values x1,…,xpx_1,\dots,x_p, h0(t)h_0(t) is the baseline hazard for a person whose covariates are all zero, and β1,…,βp\beta_1,\dots,\beta_p are the regression coefficients. Bradburn and colleagues liken it to a multiple linear regression of the log hazard on the covariates, with the baseline hazard as an intercept that varies with time.

The exponentiated coefficient exp⁡(βj)\exp(\beta_j) is the hazard ratio for a one-unit increase in xjx_j with the other covariates held fixed. Because h0(t)h_0(t) cancels when two people are compared, their hazard ratio does not depend on time, which is the proportional hazards assumption. The model is called semi-parametric because the covariate part has a fixed algebraic form while the time part, h0(t)h_0(t), is left free. A constant h0(t)h_0(t) would instead give the constant hazard exponential model.

Estimation from risk sets with the partial likelihood

Cox showed that the coefficients can be estimated without ever estimating h0(t)h_0(t). At each event time it asks how likely it was that the person who had the event, rather than anyone else at risk, was the one to have it. Multiplying these conditional probabilities over all event times gives the partial likelihood

L(β)=∏i=1Dexp⁡(xiTβ)∑j∈R(ti)exp⁡(xjTβ),L(\beta)=\prod_{i=1}^{D}\frac{\exp(x_i^{\mathsf T}\beta)}{\sum_{j\in R(t_i)}\exp(x_j^{\mathsf T}\beta)},

where DD is the number of distinct event times, tit_i is the ii-th event time, xix_i is the covariate vector of the person who had the event at tit_i, R(ti)R(t_i) is the risk set of people still under observation and event-free just before tit_i, and exp⁡(xTβ)\exp(x^{\mathsf T}\beta) is a person's risk score. The baseline hazard appears in every numerator and denominator and cancels, so the coefficients are found by maximising L(β)L(\beta) in the same way as in maximum likelihood estimation.

Only the order of event times matters, not the gaps. A censored person stays in each risk set until leaving observation, which is valid only when censoring is unrelated to the event process given the covariates.

Event times recorded in days or months often tie. The R survival package documentation describes the Breslow approximation as the first to be programmed, the Efron approximation as more accurate when ties are many (and the package default), and the exact partial likelihood as suited to a small set of discrete times. Without ties all three agree; with many ties the method should be reported.

Worked example with four patients in a small trial

The numbers are illustrative only. Four trial patients are followed for overall survival, with x=1x=1 for the new treatment and x=0x=0 for the comparator.

PatientArmTime (months)Status
1Comparator (x=0x=0)2Died
2Treatment (x=1x=1)3Died
3Comparator (x=0x=0)5Died
4Treatment (x=1x=1)7Censored

Writing r=exp⁡(β)r=\exp(\beta), a comparator patient has risk score 1 and a treated patient has risk score rr. At 2 months all four are at risk and the summed score is S2=2+2rS_2=2+2r; at 3 months patients 2, 3 and 4 remain, so S3=2r+1S_3=2r+1; at 5 months patients 3 and 4 remain, so S5=1+rS_5=1+r. The partial likelihood is

L(β)=12+2r×r2r+1×11+r,L(\beta)=\frac{1}{2+2r}\times\frac{r}{2r+1}\times\frac{1}{1+r},

where each fraction is the risk score of the patient who died divided by the summed scores of the risk set. With no treatment effect (β=0\beta=0, so r=1r=1) the value is 14×13×12=124≈0.0417\tfrac14\times\tfrac13\times\tfrac12=\tfrac{1}{24}\approx0.0417, the probability that each death happens to fall on the observed patient when every patient at risk is equally likely to die.

Setting the derivative of log⁡L\log L with respect to β\beta to zero gives

1−2r1+r−2r2r+1=0,equivalently4r2+r−1=0,1-\frac{2r}{1+r}-\frac{2r}{2r+1}=0, \qquad\text{equivalently}\qquad 4r^2+r-1=0,

where the left-hand expression is the slope of the log partial likelihood. The positive root is r=(17−1)/8≈0.390r=(\sqrt{17}-1)/8\approx0.390, so β^=ln⁡0.390≈−0.941\hat\beta=\ln 0.390\approx-0.941 and the estimated hazard ratio is about 0.39.

The baseline cumulative hazard comes from the same risk sets. Therneau's validation note for the survival package gives the increment at each event time as the number of events divided by the summed risk scores of those at risk. Survival for the comparator is exp⁡{−H0(t)}\exp\{-H_0(t)\} and survival for the treatment arm is that value raised to the power rr.

Event time (months)IncrementCumulative hazardComparator survivalTreatment survival
20.3600.3600.6980.869
30.5620.9210.3980.698
50.7191.6400.1940.527

Three events are far too few for inference, so the example shows mechanics only. Both estimated curves are step functions that change only at 2, 3 and 5 months, stay flat until the last patient is censored at 7 months, and say nothing about survival after 7 months. A lifetime cost-effectiveness model needs survival over many years, which this fitted model cannot supply on its own.

From a fitted Cox model to survival in an economic model

Predicted survival for any covariate profile follows from the baseline curve. Absolute outcomes such as life years need that curve. Bradburn and colleagues give the link as

S(t∣x)=S0(t)exp⁡(xTβ),S(t\mid x)=S_0(t)^{\exp(x^{\mathsf T}\beta)},

where S(t∣x)S(t\mid x) is the probability of remaining event-free beyond time tt for a person with covariates xx, S0(t)S_0(t) is the baseline survival function, and exp⁡(xTβ)\exp(x^{\mathsf T}\beta) is that person's risk score. They add that, where a suitable distribution can be found, a parametric model is more informative than the Cox model because predicted survival times are straightforward to obtain from it.

For health economic evaluation this is the main limitation. NICE DSU Technical Support Document 14 (TSD14) notes that a Cox model bases inferences only upon observed data, which is reasonable only when data are almost complete, as otherwise mean survival will be inaccurate. Lifetime mean survival, and the quality-adjusted life years built on it, therefore usually come from parametric survival models or flexible parametric models used for extrapolation within a partitioned survival model or a state-transition model.

TSD14 adds further cautions for Cox output. With patient-level data it is unnecessary to rely on proportional hazards; the assumption should be tested, and separate parametric models for each arm may be preferable. When a proportional hazards model is used, only the hazard ratio from the chosen parametric model should be applied to that model's control-arm curve, and TSD14 calls applying a Cox hazard ratio theoretically incorrect. With only published summary data, the origin of a quoted hazard ratio may be unclear.

Assumptions and choices that change the estimate

The model rests on proportional hazards, a log-linear effect of each covariate and independent censoring. The NICE technology appraisal manual (PMG36, section 4.6.22) states that the proportional hazards assumption should always be assessed. Bradburn and colleagues cite a simulation study in which tests based on scaled Schoenfeld residuals were among the most powerful checks.

When a covariate's effect changes over follow-up, an interaction with time lets the hazard ratio vary. In the Bradburn ovarian cancer example, an interaction with log time gave a hazard ratio for the absence of ascites of exp⁡(−0.466+0.233ln⁡2)≈0.74\exp(-0.466+0.233\ln 2)\approx0.74 at 2 years and exp⁡(−0.466+0.233ln⁡5)≈0.91\exp(-0.466+0.233\ln 5)\approx0.91 at 5 years, an effect that weakened over time. A time-varying covariate, whose value changes during follow-up, is a different idea.

Other specification choices also matter.

  • Stratification. A stratified Cox model fits a separate baseline hazard for each stratum, according to the survival package documentation. Bradburn and colleagues note that the stratifying covariate must be categorical and receives no estimated effect, so the approach suits covariates that are not of primary interest.
  • Number of events. Bradburn and colleagues cite simulation work suggesting at least 10 events for each covariate, with fewer giving biased coefficients.
  • Clustering. For patients grouped within centres, the survival package computes a sandwich variance when a cluster term is given; a frailty model is the alternative.

Interpretation and use in technology appraisal

A Cox hazard ratio is a relative measure conditional on the covariates in the model. Adjusted and unadjusted hazard ratios are therefore different quantities, and the adjustment set should be reported. In observational data a causal reading also requires confounding to be addressed.

PMG36 sets out how such estimates move into appraisal. Section 4.6.23 states that if the proportional hazards assumption holds within the trial and is clinically plausible during extrapolation, hazard ratios may be pooled using standard code for treatment differences. Section 4.6.24 states that alternative methods described in NICE DSU Technical Support Document 21 should be considered when the assumption does not hold in some studies. TSD21 covers flexible parametric methods using splines or fractional polynomials, cure and mixture models, and piecewise approaches.

How the Cox model differs from neighbouring survival methods

The Cox model sits between fully non-parametric description and fully parametric modelling. The choice depends on whether the task is adjustment or projection beyond the data.

MethodAssumption about the time patternMain outputTypical role in economic evaluation
Kaplan-Meier estimatorNone, and no covariatesStep survival curve within follow-upDescribing observed data and judging model fit
Cox modelBaseline hazard left unspecifiedHazard ratios and step survival curves within follow-upRelative treatment effects and covariate adjustment
Parametric proportional hazards modelBaseline hazard of a chosen form, such as exponential, Weibull or GompertzHazard ratios and smooth curvesExtrapolation of survival
Accelerated failure time modelDistribution of survival time specifiedAcceleration factor (time ratio)Extrapolation when proportional hazards is doubtful
Royston-Parmar modelBaseline modelled with splinesSmooth curves, time-varying effects possibleComplex hazards

Common misunderstandings

Most errors with Cox output come from treating a relative, within-trial summary as an absolute or long-term one. Several recur in economic models.

  • Reading the hazard ratio as a ratio of risks or survival times.
  • Taking a non-significant proportionality test as proof of proportional hazards when few events limit the power of the test.

Sources

Media & tools (1)

Cox Proportional Hazards Interactive Demonstrator

interactive interactive demonstrator showing how the Cox proportional hazards model scales an unspecified baseline hazard, estimates a hazard ratio from risk sets, and describes survival only within follow-up.

Open tool →

Library

Publications

5
  • Guidance

    NICE DSU Technical Support Document 14: Survival analysis for economic evaluations alongside clinical trials – extrapolation with patient-level data — Nicholas R. Latimer, TSD 14 ed., 2013 (NICE Decision Support Unit (University of Sheffield))

    The reference guidance on survival analysis for economic evaluation: fitting standard parametric models (exponential, Weibull, Gompertz, log-logistic, log-normal) to censored trial data and extrapolating to estimate lifetime survival benefit, with a process guide for model selection and justification.

  • Guidance

    NICE DSU Technical Support Document 6: Embedding Evidence Synthesis in Probabilistic Cost-Effectiveness Analysis — Software Choices — Dias, Welton, Sutton & Ades, TSD 6 ed., 2011 (NICE Decision Support Unit (University of Sheffield))

    Guidance on the software options and practical steps for embedding a Bayesian evidence synthesis directly within a probabilistic cost-effectiveness model so that parameter uncertainty is propagated consistently.

  • Journal article

    Cost-Effectiveness Analysis in R Using a Multi-State Modeling Survival Analysis Framework: A Tutorial — Williams, Lewsey, Briggs & Mackay, Vol. 37, No. 4 ed., 2017 (Medical Decision Making)

    A tutorial on building cost-effectiveness models in R using a multi-state survival-analysis framework, bridging patient-level survival data and decision modelling — a key reference for survival-based economic models in R.

  • Book

    Survival Analysis: A Self-Learning Text — David G. Kleinbaum & Mitchel Klein, 3rd Edition ed., 2012 (Springer)

    A practical introduction to survival data, censoring, Kaplan-Meier methods, Cox regression, proportional hazards and model interpretation.

  • Book

    Modelling Survival Data in Medical Research — David Collett, 3rd Edition ed., 2015 (Chapman & Hall / CRC Press)

    A medical-research guide to survival modeling, including censored outcomes, parametric models, Cox regression, diagnostics and practical interpretation.

Tools & Resources

2
  • Other

    Software validation — Therneau TM, 2022 (R survival package (CRAN vignette))

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Cox Proportional Hazards, where it is cited as a reference for that concept.

  • Other

    survHE — Survival Analysis for Health Economic Evaluation (R package) — Gianluca Baio, R package ed., 2023 (CRAN)

    An R package for fitting and comparing parametric survival models for health economic evaluation, including Bayesian estimation, and for extrapolating time-to-event data to inform cost-effectiveness models.

Frequently Asked Questions (6)

  • What is the Cox proportional hazards model?

    The Cox proportional hazards model is a semi-parametric survival regression that estimates hazard ratios without specifying the baseline hazard.

    Source: Cox 1972

  • Who developed the Cox proportional hazards model?

    The model was introduced by the statistician David Cox in the early 1970s and became one of the most widely used methods in medical research. Its innovation was to estimate how covariates such as treatment affect the hazard without having to specify the shape of the underlying hazard over time, which earlier methods required. This semi-parametric approach made survival analysis far more flexible and applicable. The method remains a standard tool for analysing time-to-event data. Cox (1972) set it out.

    Source: Cox 1972

  • How does the Cox model work?

    The Cox model expresses the hazard for an individual as a baseline hazard, common to all, multiplied by an exponential function of their covariates, so each covariate multiplies the hazard by a factor. The baseline hazard is left unspecified, and the covariate effects are estimated by partial likelihood, which uses the order of events without requiring the baseline hazard's form. This yields hazard ratios quantifying each covariate's effect, allowing the influence of factors such as treatment on the event rate to be estimated.

    Source: Cox 1972

  • What is the proportional hazards assumption?

    The proportional hazards assumption, central to the Cox model, holds that the effect of a covariate multiplies the hazard by a constant factor that does not change over time, so the ratio of hazards between individuals with different covariate values is constant. This means a covariate's hazard ratio is the same at all times. If the assumption fails, for instance if a treatment's effect diminishes over time, the constant hazard ratio misrepresents the effect, so the assumption is checked, and violations are addressed by extending the model.

    Source: Cox 1972

  • What is a hazard ratio in the Cox model?

    A hazard ratio in the Cox model is the factor by which a covariate multiplies the hazard, comparing the hazard for individuals differing in that covariate. A hazard ratio above one indicates the covariate increases the hazard, below one that it decreases it, and one that it has no effect. For example, a treatment with a hazard ratio of 0.7 reduces the hazard to 70 per cent of the comparator's. The hazard ratio is assumed constant over time under proportional hazards, summarising the covariate's effect.

    Source: Kalbfleisch & Prentice 2002

  • Why is the Cox model widely used?

    The Cox model is widely used because it estimates covariate effects on survival without requiring the baseline hazard to be specified, making it flexible and applicable to many settings where the form of the hazard over time is unknown. It handles censoring, produces interpretable hazard ratios, and accommodates multiple covariates. Its semi-parametric nature avoids strong distributional assumptions about the baseline hazard while still quantifying how factors affect risk. These features make it the standard regression method in survival analysis across medical research.

    Source: Cox 1972

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 20 Oct 2026

Content version: 1.0.2

Canonical Identity

Term code
HE-EM-SM-008

Stable URI · Machine-readable · Resolvable · CC BY 4.0