Modelcore
Cox proportional hazards model
Also called Cox regression, proportional hazards regression.
Models the hazard as an unspecified baseline hazard times exp(x^T beta), so covariates scale the hazard by a constant factor over time.
The Cox proportional hazards model relates the hazard function of an event time to a covariate vector by
The baseline hazard is any nonnegative function and is not modeled. The coefficient vector is the only finite-dimensional parameter. A change of by one unit in coordinate multiplies the hazard by at every time, so the model makes a strong assumption about the shape over time and no assumption about the level. Cox (1972) proposed the model together with a likelihood for in which does not appear, the partial likelihood. This made the model the standard regression model for censored survival data.
The machine
The data. For subjects we observe , the flag and a covariate vector . Here is the event time and the censoring time, as on the censoring page.
The conditions.
- Proportional hazards. Given , has the hazard , with the same for all subjects.
- Independent censoring. Given and that subject is still at risk at , the censoring does not change the hazard of the event at . Censoring can depend on .
- Independent subjects. The triples are independent.
- No intercept. The covariates have no constant column, because a constant in can move into as the factor .
Identifiability. If is nonsingular, then and are identified from the law of : the log ratio fixes on the span of the differences , and then . With censoring, the law is identified only up to the largest time at which subjects are still at risk.
Equivalent forms. With and a continuous :
Proof. Integrate the hazard from to to get the first form. Then with . Take of the second form to get the third.
The third form gives the usual graphical check: the curves of against (or ) for groups of subjects are parallel under the model.
The counting process form. Let and . Under the conditions, has the intensity , so is a martingale. Andersen and Gill (1982) used this form. It also allows covariates that change in time, recurrent events and delayed entry: only and change. With time-dependent covariates the hazard ratio of two subjects is no longer constant, so the name "proportional hazards" then refers to the form of the model, not to the data.
Strata. A stratified model allows a separate baseline hazard in each stratum with a common . Use it for a factor that does not satisfy proportional hazards and whose effect is not of interest.
What it counts
- Parameters. , the log hazard ratios, and the baseline hazard , an infinite-dimensional nuisance parameter.
- The hazard ratio. is the ratio of the hazards of two subjects that differ by one unit in and agree in the other covariates. It is the same at every time. It is not a ratio of survival probabilities, of medians or of mean times.
- Survival curves. . The Breslow estimator gives , and so a curve for every covariate value.
- The risk score. orders the subjects by risk at every time. The Harrell C-index measures how well this order agrees with the observed times.
- Effective sample size. The information about comes from the events, not from the subjects. A common rule asks for 10 to 20 events per coefficient. This is a rule of thumb, not a theorem.
Relation to other models
- Parametric proportional hazards models. A constant gives exponential regression and gives Weibull regression. The Cox model keeps the hazard ratio and drops the assumption on .
- Accelerated failure time models. The AFT model makes covariates stretch the time scale. The Weibull model is both a Cox model and an AFT model, and the AFT page proves that no other family is both when the identity between the two holds for every time ratio , or for two time ratios whose logarithms have an irrational ratio; it also gives a counterexample with one binary covariate.
- Frailty models. A frailty model multiplies the Cox hazard by an unobserved random factor. If the frailty is left out, the marginal hazards are not proportional, and the fitted hazard ratio moves toward over time.
- Competing risks. The Cox model can be fitted to each cause-specific hazard, with the other causes treated as censoring. The Fine-Gray model puts the same form on the subdistribution hazard of one cause instead (see competing risks).
- Discrete time. If the time axis is cut into intervals and the continuous model holds, then the conditional probability of an event in interval , given survival to its start, satisfies . This is a binary generalized linear model with the complementary log-log link. Proof: for the interval ; take . The model with the logit link in place of the complementary log-log link is Cox's (1972) discrete model, a logistic regression on the risk sets.
- Poisson regression. With a baseline hazard that is constant on intervals, the likelihood is that of a Poisson generalized linear model for the event counts with the log exposure time as an offset. When the baseline hazard may jump at each event time, the profile likelihood of is the partial likelihood with the Breslow rule for ties. The Breslow estimator page proves this.
Known results in the model
The partial likelihood. Cox (1972, 1975) estimated by maximizing
where is the covariate of the subject with the event at and is the risk set. Each factor is the conditional probability that the event at happens to the subject that had it, given that one event happens at among the subjects in . The factor does not contain . The partial likelihood page proves that is concave, gives the Newton iteration in per step after one sort, and gives the rules of Breslow, Efron and the exact rule for tied times.
Large samples. Under the conditions above and regularity conditions on the covariates, the maximizer is consistent, and converges to a normal law with covariance matrix the inverse of the limit of , where is the negative Hessian of (Andersen and Gill 1982, with the counting process form; Tsiatis 1981 earlier for time-fixed covariates). We cite these results and do not prove them. So the Wald test, the score test and the likelihood ratio test of all work as if were a likelihood.
Efficiency. The baseline hazard is unknown, so some information about is lost compared with a model with a known . Efron (1977) showed that the partial likelihood estimate keeps all the information that is left: it is asymptotically efficient in the model with an arbitrary .
The log-rank test is the score test. With one binary covariate, the score test of is the log-rank test. The partial likelihood page proves this exactly when there are no ties, and shows which variance appears with each rule for ties.
Checking the assumption. The Schoenfeld residuals of each covariate have mean near at every time if the hazards are proportional. A trend in time is evidence that the coefficient changes in time. The Grambsch and Therneau test makes this a score test.
No finite estimate under separation. If at every event time the subject with the event has the largest value of in its risk set for some direction , then increases without bound along that direction and is infinite. This is the monotone likelihood of survival data. It happens with small samples and binary covariates. The Firth penalty gives a finite estimate (Heinze and Schemper 2001).
Worked example. The leukemia remission data of Freireich et al. (1963), listed by Gehan (1965), have 21 patients on 6-MP (12 censored) and 21 on placebo (none censored), with 30 events in all. They are the data of the Kaplan-Meier page. Let for placebo. The fits with the three rules for ties give:
| ties | standard error | hazard ratio | 95% interval | likelihood ratio | score test | |
|---|---|---|---|---|---|---|
| Breslow | 1.5092 | 0.4096 | 4.52 | 2.03 to 10.09 | 15.21 | 15.93 |
| Efron | 1.5721 | 0.4124 | 4.82 | 2.15 to 10.81 | 16.35 | 17.25 |
| exact | 1.6282 | 0.4331 | 5.09 | 2.18 to 11.91 | 16.25 | 16.79 |
The hazard of the end of remission on placebo is about 4.8 times that on 6-MP, at every time. The exact score statistic 16.79 is the log-rank statistic of the log-rank page. The Grambsch-Therneau test with gives (), so these data show no evidence against proportional hazards. A Weibull AFT fit to the same data gives the hazard ratio 5.65 (see the AFT page).
Checks in code. The reference code is on the partial likelihood page. Its tests check the log partial likelihood against a direct sum over risk sets and subsets, the score and information against numerical derivatives, Newton's estimate against a fine grid, the score test against the log-rank test in exact fractions, and the values in the table above.
References
- D. R. Cox, Regression models and life-tables, Journal of the Royal Statistical Society, Series B 34(2), 1972, pp. 187 to 220 (the proportional hazards model, the conditional likelihood for the coefficients, ties and the discrete logistic model, with the discussion)
- Per Kragh Andersen and Richard D. Gill, Cox's regression model for counting processes, a large sample study, Annals of Statistics 10(4), 1982, pp. 1100 to 1120 (the counting process form of the model, consistency and asymptotic normality of the estimate, and the Breslow estimator)
- Anastasios A. Tsiatis, A large sample study of Cox's regression model, Annals of Statistics 9(1), 1981, pp. 93 to 108 (consistency and asymptotic normality of the estimate and of the estimated cumulative hazard, for time-fixed covariates)
- Bradley Efron, The efficiency of Cox's likelihood function for censored data, Journal of the American Statistical Association 72(359), 1977, pp. 557 to 565 (the efficiency of the partial likelihood estimate and the Efron approximation for ties)
- John D. Kalbfleisch and Ross L. Prentice, The Statistical Analysis of Failure Time Data, 2nd edition, Wiley, 2002, the chapter on relative risk (Cox) regression models (the model, the partial likelihood, ties, time-dependent covariates and stratification)
- Terry M. Therneau and Patricia M. Grambsch, Modeling Survival Data, Extending the Cox Model, Springer, 2000, the chapters on the Cox model, residuals and the test of proportional hazards
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag KRES0P Edit this page History Report an error Markdown