Proportional Hazards Assumption: How to Check It and What to Do When It Fails
Learn how to assess the proportional hazards assumption in Cox regression using graphical checks, Schoenfeld residuals, interval-specific hazard ratios, and formal tests. This Resource explains how to characterize nonproportional hazards and decide whether to use time-varying effects, stratification, or another survival-model framework.
1. What Does the Proportional Hazards Assumption Mean?
A standard Cox model can be written conceptually as:
h(t | X) = h0(t) exp(βX)
where h0(t) is the baseline hazard and β represents the predictor effect on the log-hazard scale.
The baseline hazard is allowed to change with time. The proportional hazards assumption concerns the relative effect of the predictor. With a fixed coefficient β, exponentiating that coefficient gives a hazard ratio, exp(β), that does not itself depend on time (Steyerberg, 2019).
For two covariate patterns that differ by one unit in X, proportional hazards therefore implies that their hazard ratio remains constant over follow-up, even though the underlying hazards may both rise, fall, or otherwise change with time.
Klein and Moeschberger describe nonproportionality explicitly through extensions in which a predictor is interacted with a function of time. Once such a term is present, the hazard ratio becomes a function of time rather than a single constant (Klein & Moeschberger, 2003).
Core interpretation question: Is one constant hazard ratio an adequate summary of this predictor's relationship with the hazard over the follow-up period?
What does a Cox hazard ratio mean when PH holds?
Under proportional hazards, an HR of 0.70 for treatment versus control means that the modeled treatment hazard is 0.70 times the control hazard throughout follow-up, conditional on the other variables in the model.
Important distinction: An HR of 0.70 does not mean that treatment reduces the cumulative probability of the event by 30%. Hazard and cumulative risk or survival probability are different quantities.
For prediction, this distinction becomes especially important because absolute survival predictions require both the predictor effects and the baseline survival function. Steyerberg notes that tables containing only hazard ratios are generally insufficient for calculating absolute risks because survival prediction also requires the baseline hazard or baseline survival (Steyerberg, 2019).
2. Why Nonproportional Hazards Matter
Suppose a treatment has a strong association with the hazard early in follow-up but little association later. Or suppose the direction of the association changes over time.
A standard Cox coefficient compresses that changing relationship into a constant-effect specification.
Harrell demonstrates that interval-specific Cox coefficients can reveal predictors whose importance decreases or otherwise changes with follow-up. Plotting interval-specific log hazard ratios against time can therefore show both whether proportionality is questionable and how the effect changes (Harrell, 2015).
This is why forcing one constant HR onto a clearly time-varying relationship can be scientifically misleading. The problem is not merely that an assumption test has “failed.” The more important problem is that the reported effect summary may conceal temporal structure that matters to the research question.
“Treatment was associated with HR = 0.75.”
Such a statement suggests a stable relative effect unless the time dependence is made explicit.
If the effect is substantially different early and late in follow-up, the analysis and reporting should represent that pattern rather than implying that 0.75 applies uniformly.
3. Do Not Confuse Time-Dependent Covariates With Time-Varying Effects
These concepts are related but different.
Time-dependent covariate
A variable whose observed value changes during follow-up.
Klein and Moeschberger give examples such as blood pressure, cholesterol, body mass index, tumor size, or indicators that change after an intermediate event (Klein & Moeschberger, 2003).
Time-varying effect
The coefficient relating a predictor to the hazard changes with time.
A baseline treatment indicator can remain fixed for every participant while its effect changes over follow-up.
One way to represent such nonproportionality is to introduce an interaction between the predictor and a function of time:
X × g(t)
The resulting hazard ratio depends on time when the coefficient for that interaction is nonzero (Klein & Moeschberger, 2003).
Key distinction: “The covariate changes over time” and “the effect of the covariate changes over time” describe different data structures and different modeling questions.
4. How to Check the Proportional Hazards Assumption
No single diagnostic should automatically determine the scientific conclusion. The useful strategy is to combine diagnostics that detect departures with methods that help reveal their magnitude and shape.
Graphical checks based on cumulative hazards
Klein and Moeschberger describe several graphical checks.
For categorical groups, plots of the log cumulative baseline hazards should be approximately parallel under proportional hazards. Alternatively, differences between log cumulative hazards can be plotted against time; under PH, those differences should remain approximately constant (Klein & Moeschberger, 2003).
They also describe Andersen plots, in which one estimated cumulative hazard is plotted against another. Under proportional hazards, the resulting relationship should be approximately linear through the origin. Certain departures from linearity can also provide clues about whether the hazard ratio is increasing or decreasing with time (Klein & Moeschberger, 2003).
These methods are useful because they make proportionality a pattern-recognition problem, rather than reducing it immediately to one p-value.
Limitation: Klein and Moeschberger note that some cumulative-hazard plots can reveal nonproportionality without providing detailed information about the exact form of the departure, and their variability is not constant over time (Klein & Moeschberger, 2003).
Schoenfeld residual diagnostics
Schoenfeld residuals provide a particularly useful Cox regression diagnostic.
Harrell describes plotting smoothed Schoenfeld residuals against failure time to examine how a predictor's log hazard ratio changes over follow-up. Scaled or weighted Schoenfeld residuals can be put on a scale related to the log relative hazard, making the temporal pattern directly informative about nonproportionality (Harrell, 2015).
The diagnostic can be used both graphically and for formal testing. Harrell describes tests based on association between transformed failure time and Schoenfeld residuals, as well as smoothed residual plots that estimate the predictor effect over time (Harrell, 2015).
| Observed pattern | Interpretation |
|---|---|
| Approximately flat temporal pattern | Supports a constant-effect representation. |
| Systematic trend | Suggests that the coefficient changes with time. |
| More complex curvature | May suggest a more complicated time-varying effect. |
The plot is often more informative than the test alone because it can show the direction, magnitude, and timing of the departure.
Interval-specific hazard ratios
Harrell also describes dividing follow-up into intervals and estimating the Cox coefficient separately within each interval.
Plotting those interval-specific log HR estimates and their confidence limits against time can reveal when a predictor is important and how its effect changes. It can also guide the construction of a predictor-by-time interaction when a nonproportional relationship needs to be modeled explicitly (Harrell, 2015).
Substantive question: What does the hazard ratio appear to be at different parts of follow-up?
5. Testing PH Is Not the Same as Understanding the Violation
A formal proportional-hazards test answers a limited question: whether the data provide evidence against a specified constant-effect structure.
It does not, by itself, tell you whether the departure is scientifically important.
Klein and Moeschberger show that PH can be tested by creating an artificial time-dependent term such as Xg(t) and testing whether its coefficient is zero. Importantly, they note that the ability of this test to detect nonproportionality depends on the chosen function g(t) (Klein & Moeschberger, 2003).
Harrell similarly presents formal tests based on Schoenfeld residuals or specified predictor-by-time interactions, while also emphasizing graphical assessment of the effect over time (Harrell, 2015).
Do not stop here
PH test: p = .02.
A statistically significant diagnostic does not describe the size, direction, timing, or scientific importance of the departure.
Ask the substantive question
How far does the HR depart from constancy, when does that happen, and does the departure change the scientific interpretation?
Conversely, a nonsignificant PH test should not automatically be interpreted as proof that the effect is exactly constant. The estimated pattern and its uncertainty still matter.
6. What to Do When Proportional Hazards Fails
The appropriate response depends on the research goal and on which variable violates proportionality.
Option 1: Model the effect as a function of time
When the time pattern itself is scientifically important, the Cox model can be extended by including a predictor-by-time interaction.
Best suited when: the changing relative effect is itself part of the scientific question.
Option 2: Use stratification
If a variable violates PH but estimating its hazard ratio is not itself the primary objective, stratification may be useful.
Best suited when: the nonproportional variable is an adjustment factor rather than the effect of primary interest.
Option 3: Consider another survival-model framework
Cox regression is not the only possible survival model.
Best suited when: the proportional-hazards structure does not adequately represent the scientific pattern or objective.
Option 1: Model the effect as a function of time
Klein and Moeschberger describe the general form Xg(t). They also show piecewise specifications in which the HR differs before and after a selected time point. In that setting, separate relative effects can be estimated for different follow-up periods (Klein & Moeschberger, 2003).
Harrell likewise describes predictor-by-time interactions and interval-specific Cox estimates as tools for modeling and understanding nonproportional effects (Harrell, 2015).
The interpretation then changes from:
“The hazard ratio is HR.”
to:
“The hazard ratio varies with follow-up time according to the fitted time-effect relationship.”
That is a time varying hazard ratio, not one universal effect.
Option 2: Use stratification
Klein and Moeschberger explicitly describe stratification as one approach when the proportional-hazards assumption is violated and demonstrate adjustment for a nonproportional factor through a stratified proportional-hazards model (Klein & Moeschberger, 2003).
Interpretive trade-off: Stratifying on a variable addresses its nonproportional baseline-hazard structure, but it is not the appropriate strategy when the main scientific goal is to estimate and report that variable's changing hazard ratio.
Option 3: Consider another survival-model framework
Steyerberg discusses parametric survival models and accelerated failure-time formulations as alternatives with different assumptions and interpretations. He also notes that models such as the log-logistic may be useful in situations where predictor effects are concentrated in an early phase, which would appear as nonproportional hazards in a Cox model (Steyerberg, 2019).
Klein and Moeschberger additionally discuss additive hazards models as alternatives to the multiplicative proportional-hazards formulation; these can allow regression effects themselves to vary over time (Klein & Moeschberger, 2003).
The alternative should be selected because its structure matches the research objective and observed time pattern—not simply because the Cox PH test produced a small p-value.
7. A Practical Decision Guide
| Diagnostic finding | Interpretation | Possible response |
|---|---|---|
| Effect appears reasonably stable over follow-up | Constant HR may be an adequate summary | Retain standard Cox specification |
| Formal test suggests departure, but estimated time variation is small | Statistical evidence of non-PH may not imply a substantively large departure | Examine effect pattern and uncertainty before changing the scientific summary |
| HR clearly attenuates or strengthens over time | One coefficient conceals changing predictor importance | Model predictor × time; report time-specific effects |
| Effect differs across broad follow-up periods | Piecewise representation may be useful | Consider interval-specific or change-point time effects |
| Non-PH variable is an adjustment variable rather than the effect of interest | Its HR may not need to be estimated | Consider stratification |
| Cox structure poorly represents the scientific pattern | Constant multiplicative hazards may be the wrong framework | Consider an alternative supported survival model |
| Objective is individual prediction | HR interpretation alone is insufficient | Evaluate survival predictions, including absolute risk and predictive performance |
For prediction: A Cox model used for prediction must ultimately generate survival probabilities, not merely statistically significant hazard ratios. Steyerberg emphasizes that survival prediction depends on both predictor effects and baseline survival, and that prediction modeling has objectives beyond estimating relative effects (Steyerberg, 2019).
8. The StatsAlly PH Checklist
Fit
- Define the event, time origin, follow-up period, censoring structure, and scientific target before fitting the Cox model.
- Identify which predictors are exposures or treatments of primary interest and which are adjustment variables.
- Fit a scientifically justified Cox model rather than treating the software's default specification as automatically adequate.
- Remember that the standard model assumes proportional predictor effects over follow-up.
Diagnose
- Examine graphical proportional-hazards diagnostics where appropriate.
- For categorical predictors, consider cumulative-hazard-based graphical checks.
- Examine Schoenfeld residuals or scaled Schoenfeld residual patterns for important predictors.
- Use formal PH tests as diagnostic evidence, not as the entire model-checking exercise.
- Consider interval-specific HR estimates when they help reveal the temporal pattern.
Characterize the violation
- Identify which predictor shows nonproportionality.
- Determine whether its estimated effect strengthens, attenuates, reverses, or otherwise changes with follow-up.
- Examine when the departure occurs.
- Consider the uncertainty around the apparent time pattern.
- Distinguish a changing predictor value from a changing predictor effect.
- Ask whether the departure is large enough to change the substantive interpretation.
Reconsider the effect summary or model
- Decide whether one constant HR remains an adequate scientific summary.
- If the changing effect is important, consider a predictor-by-time interaction.
- Consider piecewise time effects when broad follow-up intervals have distinct relative effects and that specification is scientifically defensible.
- Consider stratification when the non-PH variable needs adjustment but its HR is not the target of interest.
- Consider another survival-model framework when the Cox proportional-hazards structure does not adequately represent the research question.
- For prediction, consider the consequences for absolute survival predictions rather than focusing only on coefficients.
Report transparently
- State that proportional hazards was assessed.
- Identify the diagnostic methods used.
- Report which variables showed important departures.
- Describe the pattern and magnitude of nonproportionality, not merely the p-value.
- Explain any time interaction, stratification, or alternative model introduced in response.
- Do not report one HR as universally applicable if the fitted effect materially changes over time.
- Report uncertainty for time-specific or time-varying effects where available.
- Align the interpretation with the final model actually fitted.
9. Common Mistakes
Reporting one HR without checking PH
A Cox model fitting successfully does not demonstrate that its proportional-effects specification is adequate.
Treating the PH test as a pass/fail gate
A p-value can indicate evidence of departure but does not describe its magnitude, direction, timing, or scientific importance.
Ignoring the residual plot after obtaining a significant test
The pattern is often the part researchers actually need to understand. Schoenfeld-residual and interval-specific effect plots can reveal whether the HR changes gradually, primarily early in follow-up, or in some other way (Harrell, 2015).
Calling every time-related term a “time-dependent covariate”
A covariate whose measured value changes during follow-up is not the same thing as a fixed baseline predictor whose effect changes over time.
Automatically stratifying the main treatment variable
Stratification may accommodate nonproportionality, but it is less useful when the scientific objective is precisely to estimate how that treatment's relative effect changes with time.
Replacing Cox regression solely because a test is significant
The response should depend on the size and form of the departure and on the target question. Extended Cox specifications, stratification, and alternative survival models answer different questions.
10. What Should a Published Analysis Say?
A defensible methods section should make clear that the proportional hazards assumption was examined and identify the diagnostic approach.
If nonproportionality is detected, the results should go beyond stating that “the PH assumption was violated.” Researchers should explain which predictor was affected, what the time pattern looked like, and how the model or effect summary was changed as a result.
When the final model contains a time interaction, the results should report the resulting time-dependent effect rather than reverting to a single constant HR.
When stratification is used, the report should identify the stratifying variable and explain why its own HR is not being presented.
Reporting principle: The interpretation should describe the model that was actually supported and fitted—not the simpler constant-HR model researchers initially hoped to report.
Bottom Line
The proportional hazards assumption asks whether the relative effect represented by a standard Cox coefficient can reasonably be treated as constant over follow-up.
Checking that assumption should therefore be more than a formal hypothesis test.
Use graphical and residual-based Cox regression diagnostics to investigate the effect over time. Schoenfeld residuals and interval-specific hazard-ratio estimates can help characterize the pattern of departure. If important non proportional hazards are present, reconsider whether the scientific result should be a constant HR, a time varying hazard ratio, a stratified analysis, or another survival-model formulation (Klein & Moeschberger, 2003; Harrell, 2015; Steyerberg, 2019).
Workflow: Fit → diagnose → characterize violation → reconsider effect summary/model → report transparently.
The objective is not to make the PH test nonsignificant. It is to represent the relationship between the predictor and the event process in a way that is statistically defensible and scientifically interpretable.
FAQs
What is the proportional hazards assumption?
In the standard Cox model, proportional hazards means that the modeled relative effect of a fixed predictor on the hazard is constant over follow-up. The baseline hazard itself is allowed to change with time (Steyerberg, 2019).
How do I check the proportional hazards assumption?
Supported approaches include cumulative-hazard-based graphical checks, Schoenfeld-residual diagnostics, interval-specific hazard-ratio estimates, and formal tests based on residuals or predictor-by-time interactions (Klein & Moeschberger, 2003; Harrell, 2015).
What are Schoenfeld residuals used for?
In Cox regression, Schoenfeld residuals can be examined against failure time to assess whether a predictor's effect changes systematically over follow-up. Smoothed scaled residuals can help visualize the form of the log hazard ratio over time (Harrell, 2015).
What should I do if the proportional hazards assumption is violated?
The appropriate response depends on the predictor and research objective. Supported options include modeling a predictor-by-time interaction, using piecewise time effects, stratifying on a nonproportional adjustment variable, or considering another survival-model framework (Klein & Moeschberger, 2003; Harrell, 2015; Steyerberg, 2019).
Does a significant PH test mean I must abandon the Cox model?
Not necessarily. Cox-model extensions can explicitly represent effects that vary with time, and stratification can address some nonproportional variables. The diagnostic should be used to understand the departure and select a specification appropriate to the scientific question (Klein & Moeschberger, 2003; Harrell, 2015).
Is a time-dependent covariate the same as a time-varying hazard ratio?
No. A time-dependent covariate changes value during follow-up. A time-varying hazard ratio arises when the effect of a predictor changes with time. A fixed baseline predictor can therefore have a time-varying effect (Klein & Moeschberger, 2003).
Why isn't a PH p-value enough?
A formal test addresses evidence against a specified constant-effect structure but does not fully describe the magnitude, direction, or timing of the departure. Graphical diagnostics and estimates of the effect over time are needed to understand whether the departure is scientifically important (Klein & Moeschberger, 2003; Harrell, 2015).
References
Harrell, F. E., Jr. (2015). Regression modeling strategies: With applications to linear models, logistic and ordinal regression, and survival analysis (2nd ed.). Springer. https://doi.org/10.1007/978-3-319-19425-7
Klein, J. P., & Moeschberger, M. L. (2003). Survival analysis: Techniques for censored and truncated data (2nd ed.). Springer.
Steyerberg, E. W. (2019). Clinical prediction models: A practical approach to development, validation, and updating (2nd ed.). Springer. https://doi.org/10.1007/978-3-030-16399-0
Need help with a similar research question?
Share a short, non-confidential summary of your study and the decision you need to make.