marginaleffects
margins
mfx
emmeans
probemod
interactions
interactionR
sjPlot
etwfe
microsynth
erer
A typical moderation model is represented as:
Y=β0+β1X+β2M+β3X×M+ε
where:
β0: Intercept
β1: Main effect of X
β2: Main effect of M
β3: Interaction effect of X and M
If β3 is significant, it suggests that the effect of X on Y depends on M.