Hi all,
I was wondering if someone can help me interpret the interaction variables presented in the output below.
If we pretend that the interaction term in the Type 3 table is significant, my understanding is that:
- interaction between being a boy (vs. Girl) and being Depressed (vs. Not depressed) - significant
- interaction between being other (vs. Girl) and being depressed (vs. not depressed) - significant
The values for girl is not provided as it is the reference group that I have chosen.
Is this correct? Any help would be appreciated!
When there is interaction in the model, you interpret the effect of each variable at each level of the other variable it interacts with. To do that, use the SLICE statement. For example:
slice sex*depression/ sliceby=depression;
or
slice sex*depression/ sliceby=sex;
Here, I used spliceby = sex
So from the Analysis of GEE Parameter Estimates Tables, I can identify the significance of whether or not interaction exists. And I can use this Simple Differences Table to identify significance between sex groups that have depression. Is that correct?
You mentioned "When there is interaction in the model, you interpret the effect of each variable at each level of the other variable it interacts with. To do that, use the SLICE statement. "
Just to confirm, if we didn't assume the interaction effect in the Type 3 table was significant and went by actually what we see in the output (i.e., the interaction term in the Type 3 table was not significant.), then I would not be able to interpret the effect of each variable at each level of the other variable it interacts with. Is this correct?
Are there any resources that you think would be helpful reading regarding interactions between categorical variables (esp when the outcome variable is also categorical)?
See this note that discusses models with interaction in general and testing hypotheses in such models. In particular, Example 3 illustrates and discusses an interaction model in a binary response model.
In addition to the good advice from @StatDave you should also take advantage of the excellent plots available in PROC GENMOD via the EFFECTPLOT statement to help you interpret the interaction. There are interaction plots, SLICEFIT plots, and SLICEBY plots.
When I specify "effectplot interaction (x=depression)" where Y = smoking status into my code, this is what I see. Is this what you meant?
Yes, those plots look exactly like the ones I used to illustrate an interaction years ago when I taught an introductory stats class.
SteveDenham
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.