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!
A=1,B=1againstA=0,B=0. That HR would be the productHR_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. – EdM Jul 31 '22 at 21:20