powered by
A moderation model with a categorical moderator.
data_mod_cat
A data frame with 300 rows and 5 variables:
Predictor. Numeric.
Moderator. String. Values: "group1", "group2", "group3"
Outcome variable. Numeric.
Control variable. Numeric.
data(data_mod_cat) dat <- data_mod_cat summary(lm_y <- lm(y ~ x*w + c1 + c2, dat))
Run the code above in your browser using DataLab