Checking proportional hazards and what to do instead
Today let's understand what the Cox model's proportional-hazards promise really claims, and what to do when a trial breaks it.
The chart below is not this lesson's trial yet. It is a generic baseline survival curve, and a second curve you can pull with the hazard ratio toggle above it.
Toggle the hazard ratio and watch the second curve move, always on the same side of the baseline, right from month zero to the end of follow-up. That is the geometric promise of proportional hazards: one hazard ratio scales the whole curve the same way at every single month, so the two curves never cross.
Here is a trial that will test whether a real drug keeps that promise. A clinic runs a 36-month trial on 40 patients with a chronic condition. Twenty get standard care, and twenty get a new drug, and every patient is followed until the condition returns or the trial ends, whichever comes first.
Early in the trial, the new drug looked like a clear win. But by month 36, that early advantage looked like it had faded. This lesson asks whether one hazard ratio can honestly describe a drug whose effect changes like that, and if not, what to report instead.
That never-crossing picture above is the claim we are about to test against this trial's own numbers.
What the proportional-hazards assumption actually claims
Here is that promise, written as one equation.
\[ \frac{h_{\text{drug}}(t)}{h_{\text{standard}}(t)} = HR \quad \text{for every value of } t \]
\(h_{\text{drug}}(t)\) and \(h_{\text{standard}}(t)\) are each arm's hazard at month \(t\): the instantaneous risk that the condition returns right at that month, among patients who have made it that far without it returning. The part that matters most is "for every value of t". The ratio has to be the same number whether \(t\) is month 2 or month 30, not something you average once over the whole trial and call it a day.
HR itself is not a separate guess. It comes straight out of the Cox model's own fitted coefficient.
\[ HR = e^{\beta} \]
where \(\beta\) is the coefficient coxph() estimates for the arm variable. That is exactly the shape a never-crossing pair of curves draws: pick any one hazard ratio, and the two curves keep that same relationship at every month, which is only possible if the ratio itself never changes.