| Literature DB >> 34806210 |
Peter C Austin1,2,3, Jiming Fang1, Douglas S Lee1,2,4,5.
Abstract
The Cox proportional hazards model is used extensively in clinical and epidemiological research. A key assumption of this model is that of proportional hazards. A variable satisfies the proportional hazards assumption if the effect of that variable on the hazard function is constant over time. When the proportional hazards assumption is violated for a given variable, a common approach is to modify the model so that the regression coefficient associated with the given variable is assumed to be a linear function of time (or of log-time), rather than being constant or fixed. However, this is an unnecessarily restrictive assumption. We describe two different methods to allow a regression coefficient, and thus the hazard ratio, in a Cox model to vary as a flexible function of time. These methods use either fractional polynomials or restricted cubic splines to model the log-hazard ratio as a function of time. We illustrate the utility of these methods using data on 12 705 patients who presented to a hospital emergency department with a primary diagnosis of heart failure. We used a Cox model to assess the association between elevated cardiac troponin at presentation and the hazard of death after adjustment for an extensive set of covariates. SAS code for implementing the restricted cubic spline approach is provided, while an existing Stata function allows for the use of fractional polynomials.Entities:
Keywords: Cox proportional hazards model; fractional polynomials; restricted cubic splines; survival analysis; time-dependent effect
Mesh:
Year: 2021 PMID: 34806210 PMCID: PMC9299077 DOI: 10.1002/sim.9259
Source DB: PubMed Journal: Stat Med ISSN: 0277-6715 Impact factor: 2.497
FIGURE 1Comparison of different time‐varying hazard ratios
Measures of model fit for different regression models
| Model | Model df | Deviance | AIC | BIC |
|---|---|---|---|---|
| Constant hazard ratio | 35 | 80 892.525 | 80 962.525 | 81 186.900 |
| Log‐hazard ratio a linear function of time | 70 | 80 766.060 | 80 906.060 | 81 354.811 |
| Restricted cubic splines to model log‐hazard ratio | 105 | 80 664.393 | 80 874.393 | 81 547.519 |
| Fractional polynomials to model log‐hazard ratio | 46 | 80 729.062 | 80 821.062 | 81 115.955 |
| Piecewise constant hazard ratio | 140 | 80 692.439 | 80 972.439 | 81 869.940 |
FIGURE 2Comparison of different methods for selecting knots for RCS
AIC statistics for the nine different RCS models
| Method to select location of knots | |||
|---|---|---|---|
| Number of knots | Equal number of deaths per interval | Equidistant knots | Equidistant percentiles |
| 3 | 80 874.393 | 80 886.104 | 80 875.787 |
| 4 | 80 906.441 | 80 921.564 | 80 905.902 |
| 5 | 80 923.246 | 80 955.543 | 80 917.574 |
Function describing the log‐hazard ratio as a function of time for the variables identified as having non‐proportional effects using the FP selection algorithm
| Variable | Log‐hazard ratio as a function of time |
|---|---|
| Elevated troponin | 0.949 − 0.122log( |
| Transport by EMS | −0.072 − 1.350 |
| Systolic blood pressure | −0.025 + 0.002log( |
| Heart rate | 0.014 − 0.003log( |
| Pneumonia | 0.576 − 0.095log( |
| Heart failure | −0.121 + 0.058log( |
| Male sex | −0.229 + 0.063log( |
| Psychiatric disorder | −0.225 + 0.113log( |
| Hypertension | −0.151 − 0.297 |
| Oxygen saturation | −0.026 + 0.004log( |
FIGURE 3Time‐varying hazard ratios for other covariates
FIGURE 4Comparison of model‐based and bootstrap confidence intervals