Hi all,
I have a doubt regarding interpretation of interaction coefficients. I ran the following survival regression with interaction terms (but the question applies to any interaction model). X1 is a binary variable (0 and 1) and X2 is a categorical variable (1 to 4).
mestreg X1##i.X2 || id:,distribution(weibull)
The following is my output.
This means that the effect of X1=1 for the reference level of X2 is 0.77 (not significant). None of the interaction terms are significant. This means that the effect of X1 is the same for X2=1,2,3,4. However, when I calculate the HR of X1 for X2=2,3,4 using the lincom command, I get the following result.
The commands I used are
This means that the effect of X1=1 for the level of X2 =3 (got by multiplying two insignificant coefficients) is significant which is at odds which the original results. I understand this is possible statistically but I am struggling to understand the interpretation of this. The original interaction terms (and coefficient for X1) suggested that the effect of X1=1 for the reference level of X2 and all the other levels are insignificant. However, the results from lincom suggests that there is an effect of X1= 1 for X2=3. Can anyone help me make sense of this?
Thanks a lot!!
I have a doubt regarding interpretation of interaction coefficients. I ran the following survival regression with interaction terms (but the question applies to any interaction model). X1 is a binary variable (0 and 1) and X2 is a categorical variable (1 to 4).
mestreg X1##i.X2 || id:,distribution(weibull)
The following is my output.
Code:
_t Haz. ratio Std. err. z P>z [95% conf. interval] X1 .7790952 .1815352 -1.07 0.284 .4934624 1.230062 X2 2 .9344683 .1120552 -0.57 0.572 .7387443 1.182048 3 1.391667 .1847761 2.49 0.013 1.072799 1.805311 4 1.24932 .2197616 1.27 0.206 .8849994 .763617 X1#X2 1 2 1.142887 .3589047 0.43 0.671 .617586 2.114993 1 3 .5858098 .2259656 -1.39 0.166 .2750559 1.247649 1 4 1.065054 .4825648 0.14 0.889 .4382286 2.588464
Code:
exp(b) Std. err. z P>|z| [95% conf. interval] 1 2 | .8904176 .1944751 -0.53 0.595 .5803416 1.366167 1 3 | .4564016 .1425669 -2.51 0.012 .2474321 .841857 1 4 | .8297781 .3269853 -0.47 0.636 .3832962 1.796344
Code:
lincom 1.X1 + 1.X1#2.X2, eform lincom 1.X1 + 1.X1#3.X2, eform lincom 1.X1 + 1.X1#4.X2, eform
Thanks a lot!!
Comment