0
$\begingroup$

I am running a cox proportional hazards regression with Stata and am having trouble interpreting the interaction term between two binary categorical variables.

For simplicity, here's a summary of the output and the problem i'm struggling with:

stcox a##b gives me the following:

Hazard Ratio for A: 1.1 (p <0.01) Hazard Ratio for B: 1.1 (p=0.3) Hazard Ratio for A#B: 1.4 (p<0.01).

Now, my question is the following:

Do I interpret the Hazard Ratio for the interaction term as

-the interaction between A and B provides a hazard ratio of 1.4

or

-the interaction between A and B provides a hazard ratio that is 1.4 times greater than what would be expected by the sum of A and B if there was no true interaction present

The reason why I ask is because when I just include the interaction term without the main effects (stcox a#b), I get a hazard ratio of 1.80.

Thank you so much!

$\endgroup$

1 Answer 1

0
$\begingroup$

The correct answer (assuming that you are using treatment or dummy coding for each of A and B) is close to your second suggestion, with one modification:

the interaction between A and B provides a hazard ratio that is 1.4 times greater than what would be expected by the combination of A and B if there was no true interaction present

I replaced your "sum" of A and B with "combination" because someone else reading this page might interpret "sum of A and B" to mean the sum of their hazard ratios (HR). That would be wrong: hazard ratios multiply. To avoid confusion when combining coefficients, I work in the original coefficient scale of log-hazards (where sums are correct and standard errors are symmetric), and only exponentiate to get HR at the end.

In the original log-hazard coefficient scale, this is the same as for any interaction term in a regression model.

A few cautions:

First, the title might be taken to imply that "Odds Ratio" and "Hazard Ratio" are the same thing. They aren't. See this page among others for discussion.

Second, you mentioned modeling with only the interaction term and not the individual terms for A and B. That was OK to try to help figure out how to interpret the interaction HR, but that's almost never a good idea for formal modeling.

Third, your result shows why it's not a good idea to throw out an "insignificant" predictor from a model, particularly when there's an interaction. The apparently "insignificant" HR for B (p = 0.3) only means that its coefficient can't be distinguished from 0 (HR distinguished from 1) in the situation where A is at its reference level. Keeping B in the model helps illuminate the association of A with outcome and refines predictions from the model.

$\endgroup$
2
  • $\begingroup$ +1 thank you! So if I was talking in terms of Hazard's ratios, what value should I be using to actually report the hazard's ratio of treatment A&B combined? Would it be 1.8? Or would it be 1.4? I'm assuming it would be 1.8 since 1.4 is just to show that it's 1.4x greater than the main effects alone? $\endgroup$
    – MS9595
    Jul 31, 2022 at 20:39
  • $\begingroup$ @MS9595 with interactions you have to be specific about what you're comparing. If A and B are both coded 0/1, then you might be comparing A=1,B=1 against A=0,B=0. That HR would be the product HR_A * HR_B * HR_A:B. In this simple case that might come out to be the 1.8 that you got with the interaction-only model, but an interaction-only model might not work with more complicated situations. It's usually safest to use a "predict" function in your software to do such comparisons and to get the correct standard errors. $\endgroup$
    – EdM
    Jul 31, 2022 at 21:20

Your Answer

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

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