2
$\begingroup$

With the following code in R, I created this graph:

model_1 <- coxph(Surv(time, event) ~ Continuous_Var*Dummy_Var,
             data = mydat)

myPlot1 <- coxsimInteract(model_1, b1 = "Continuous_Var", 
                       b2 = "Dummy_Var",
                       X1 = seq(0, 5, by = 0.5),
                       X2 = c(0,1),
                       qi = "Hazard Ratio")

simGG(myPlot1)

enter image description here

What exactly does the hazard ratio tell me? I always thought, looking at continuous variables the hazard ratio is the ratio of the hazard rates, when you increase the variable by 1 and in cox-regressions one normally assumes this ratio to be constant. So referring to this plot:

  1. Is the interpretation any different, due to the interaction effect of my dummy variable with the continuous variable?
  2. The usual assumption of proportional hazards in a cox-regression no longer holds (As the blue line is not remaining at the same level and is raising), correct?
  3. How can I then interpret the hazard ratio: Does it mean the risk at Continuous_Var = 0 is around 1.8% higher if the Dummy_Var takes value 1 and this risk will rise, up to 2.5%? Or does it mean, taking the hazard rate of Continuous_Var at 3 divided by the hazard rate at 2 the hazard rate increases by 2.25

I am sorry if it sounds confusing, I am simply not sure how to make sense of this plot.

$\endgroup$

1 Answer 1

3
$\begingroup$

It's important to recognize an important difference between hazard rates:

In survival analysis, the hazard rate at time 𝑡 is the instantaneous probability of death at 𝑡, conditional on survival until 𝑡.

and hazard ratios. A hazard rate can be thought of as defined for a group of individuals having a defined set of characteristics. A hazard ratio is then the ratio of hazard rates between 2 such groups at some point in time. So the hazard ratio depends both on the reference group and on the set of characteristics that you specify for the second group.

Although a hazard ratio can be defined at any point in time, the proportional hazards assumption underlying the Cox model is that the hazard ratio between 2 defined groups is constant regardless of the particular time point.

The way you set up your Cox model, the reference set of characteristics is Continuous_Var = 0 and Dummy_Var = 0. All of the hazard ratios you have plotted (evidently with the simPH package) are expressed relative to that reference. Without an interaction term the hazard ratio for a different set of characteristics, relative to that reference, would have been the product of the individual hazard ratios based on the specified values of Continuous_Var and Dummy_Var. With the interaction term that you included, the hazard ratio can be either greater or lower than that product, depending on whether the interaction is positive or negative.

So with respect to your questions:

  1. Your statement that "the hazard ratio is the ratio of the hazard rates, when you increase the [continuous] variable by 1 and in Cox-regressions one normally assumes this ratio to be constant" might not take the interaction into account.* The interaction term allowed for the slope of the Hazard Ratio as a function of the value of Continuous_Var to be different depending on the value of Dummy_Var. It also necessarily allowed the Hazard Ratio associated with the value of Dummy_Var to differ depending on the value of Continuous_Var, if you prefer to think about it that way. For example, the Hazard Ratio associated with the 1-0 difference in Dummy_Var is about 1.8 at Continuous_Var = 0 and rises to about 2.5 when Continuous_Var = 5. So yes, including interaction terms can require a bit of extra thought with respect to interpretation. That's really no different in principle, however, from interactions in ordinary regression.

  2. Nothing in your plot has anything to do with time per se. If the proportional hazards hypothesis holds then an individual with Continuous_Var = 5 and Dummy_Var = 1 would have at all times an instantaneous hazard 2.5 times that of an individual with Continuous_Var = 0 and Dummy_Var = 0. To test the proportional hazards assumptions you have to look explicitly at how things change over time.

  3. The hazard ratios are ratios, not percentages as you seem to present them in your question. Also, the use of the word "risk" can be ambiguous as it often is used to represent an absolute risk (e.g., risk of death before 3 years) rather than the instantaneous probability (conditional on survival to a particular time) of a hazard rate. So it would be better to specify "hazard" or "hazard rate" and to be clear about the reference situation if you specify a hazard ratio. Thus you could more properly say: "With respect to Dummy_Var=0at Continuous_Var = 0, the hazard is around 1.8 times higher with Dummy_Var=1 at Continuous_Var = 0, increasing to a hazard ratio of 2.5 at Dummy_Var=1 and Continuous_Var = 5." The Hazard Ratio of 2.25 plotted for Dummy_Var=1 at Continuous_Var = 3 represents the hazard relative to the reference condition, Dummy_Var=0at Continuous_Var = 0. You could calculate the Hazard Ratio between Continuous_Var = 3 and Continuous_Var = 2 at Dummy_Var=1 from your plot, as both use Dummy_Var=0at Continuous_Var = 0 as the reference; looks like it would be about 2.25/2.1 or about 1.07.


*One more warning: the Cox model assumes that hazards change exponentially with the value of a continuous predictor variable. That's why there's a slight curve visible in the blue line on your plot; it probably would have shown up on the red line, too, if you magnified that part of the curve enough. That might also be contributing to some confusion. Working in the log-hazard scale can sometimes help clarify things, where additive effects of predictors remain additive instead of multiplicative as on your plot.

$\endgroup$
4
  • $\begingroup$ First of all thank you so much :) Just to make sure, whether I got you correctly: All plotted points, refer to the combination of Dummy and Continuous_Var = 0. Expanding this graph to negative x values would be still the same, so e.g., if continuous_var=(-5) and dummy=1 had a hazard ratio of 0.5, this would simply indicate a decreased hazard compared to continuous and dummy = 0. $\endgroup$
    – heyho
    Sep 2, 2019 at 11:58
  • $\begingroup$ Although it is a ratio, I read it is possible to express a hazard ratio in % change --> (hazard ratio - 1)*100 = % change, if the var has an incremental change. Is this working here, too? So let´s say at Continuous_Var=0 and Dummy_Var=1, the value 2.25 expresses an 125% increased hazard compared to Continuous_Var and Dummy_Var=0. $\endgroup$
    – heyho
    Sep 2, 2019 at 12:01
  • 1
    $\begingroup$ @heyho your first comment is correct. The graph represents all hazard ratios relative to the reference case, here with both continuous and dummy = 0. For the second comment, the value of 2.25 seems to be at Continuous_Var=3 and Dummy_Var=1; if you wish I suppose you could call that a 125% increase in hazard compared to the reference. I often find large percentage changes like that to be hard for some people to grasp, however, and would personally prefer just to say that the hazard ratio is 2.25 and leave it at that. $\endgroup$
    – EdM
    Sep 2, 2019 at 19:46
  • $\begingroup$ Again, thank you a lot. I will try to stick to your advice and not use the % for interpretation. $\endgroup$
    – heyho
    Sep 3, 2019 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.