This webpage contains links to software resources that enable you to replicate simulations of the kind described in Smithson, M. (2012) A simple statistic for comparing moderation of slopes and correlations.
These include R code for the simulations involving categorical moderators, continuous moderators, SEMs for regression models and SEMs for correlation models. There is also code for the categorical moderator simulations with skew-normal data.
Moderator GLM simulations |
SEM simulations |
Categorical moderator, normal data | Regression SEMs |
Categorical moderator, skew-normal data | Correlation SEMs |
Continuous moderator, normal data |