Muddy Points

Lesson 10: Interactions

Modified

May 2, 2025

Muddy Points from Spring 2025

1. log-odds vs predicted probability vs odds ratio of interactions: when to use, significance…

I would almost never present log-odds in my work. log-odds are the best way to represent the linear component of our model and allow us to translate our predictors to our binary outcome. However, it is not really interpretable. This is why we transform log-odds to odds ratios or predicted probabilities.

Predicted probabilities are easier to interpret and help us understand the risk for any given person. Odds ratios are more helpful for understanding associations and relationships. It’s hard to understand the relationship between prior fracture and future fracture if I only give you the predicted probabilities of each. If we take the odds ratio, I’ll have a better understanding of how prior fracture affects future fracture.

For significance, it all relates to the value and the transformation we needed to get there. When we look at coefficients in a model that uses the logit function, then we are testing the coefficients against 0. When we take a transformation, like we do to get odds ratios, then we test against the transformed value of 0. To go from logit to odds ratios, we take the exponent (\(e^\beta\)). If we test the coefficients against 0, then we need to test the odds ratios against \(e^0\). We know \(e^0=1\), so we must test our odds ratios against 1.

2. So, it is ok to adjust for mediators?

On slide 31 of the slides from Northwestern, there is a pretty good answer to this. Basically, you can adjust for mediators. BUT the meaning of adjusting for a mediator is different than a confounder. This is the exact quote from the slides on adjusting for mediators: “Before adjustment, we have the total effect of the potential risk factor on the outcome. After adjustment, we have the remaining effect of the risk factor after the partial effect of that mediator is considered.”

3. I got lost with the example of the interaction slide. The order in which you test out the models.

I hope I addressed this better on 4/30!

4. Odds ratios in the presence of interactions slides

I hope I addressed this better on 4/30!

6. Could you walk through a bit more thoroughly how you determined that the Wald test was correct to use on the slide “Example: GLOW Study: Age an effect modifier or confounder?” (slide 33,34)

Yes! In this specific case, we are testing the interaction for a binary variable with a continuous variable. To represent the interaction, we only need one coefficient. Thus, testing if that coefficient is 0 or not (aka Wald test) will sufficiently test whether the model should include the interaction or not. If the coefficient is significantly different than 0, then we should keep the interaction in the model. If there is insufficient evidence that the coefficient is not 0 (aka we don’t disprove that is 0), then we say we should model without the interaction.

7. The purpose of centering age: is this always done to find the point estimate at the specific effect-modifying value?

The purpose of centering is the same as Linear Models! Here are the slides from last quarter.

8. Why do we perform glm() for three different models? What does the output of Model 2 and 3 tell us? Does it tell us if a certain variable is a confounder or effect modifier?

When we perform a likelihood ratio test, we need to compare and run all the models involved. I showed a quick test of the interaction by looking at the significance of the coefficient for the interaction (using the Walk test). However, when our interaction involved more coefficients, we need to use the likelihood ratio test to test the interaction. We would need to fit a model with and without the interaction, then run those both through the test.

Muddy Points from Spring 2024

I think I overlooked these last year :(