Skip to content

Commit d373af5

Browse files
20251113 - power and shape of interaction
1 parent 79c4662 commit d373af5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

regression.Rmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ summary(model2)$adj.r.squared - summary(model1)$adj.r.squared
340340

341341
# Moderated Multiple Regression {#moderation}
342342

343+
When testing for the possibility of moderation/interaction, it is first important to think about what shape the interaction might take.
344+
If you expect a bilinear interaction (i.e., the slope of the regression line between `X` and `Y` changes as a *linear* function of a third variable, `Z`), it is appropriate to treat the moderator as continuous in moderated multiple regression.
345+
However, if you expect that the interaction might take a different form (e.g., a threshold effect), you may need to consider other approaches, such as using categorical variables, polynomial interactions, spline functions, generalized additive models (GAMs), or machine learning.
346+
347+
For information on the (low) power to detect interactions and how to improve it, see:
348+
https://isaactpetersen.github.io/Principles-Psychological-Assessment/reliability.html#productTerm-reliability
349+
350+
The examples below use the `interactions` package in R.
343351
https://cran.r-project.org/web/packages/interactions/vignettes/interactions.html (archived at https://perma.cc/P34H-7BH3)
344352

345353
```{r}

0 commit comments

Comments
 (0)