Skip to content

Commit 934cabc

Browse files
20260224 - GAM interaction
1 parent 70ac17a commit 934cabc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

regression.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ summary(model2)$adj.r.squared - summary(model1)$adj.r.squared
368368
When testing for the possibility of moderation/interaction, it is first important to think about what shape the interaction might take.
369369
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.
370370
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.
371+
For info on how to examine an interaction with a GAM, see [Simonsohn (2024)](https://doi.org/10.1177/25152459231207787).
371372

372373
For information on the (low) power to detect interactions and how to improve it, see:
373374
<https://isaactpetersen.github.io/Principles-Psychological-Assessment/reliability.html#sec-productTerm-reliability>

0 commit comments

Comments
 (0)