data_med_mod_serial_cat | R Documentation |
A serial mediation model with two categorical moderators.
data_med_mod_serial_cat
A data frame with 300 rows and 8 variables:
Predictor. Numeric.
Moderator. String. Values: "group1", "group2", "group3"
Moderator. String. Values: "team1", "team2"
Mediator 1. Numeric.
Mediator 2. Numeric.
Outcome variable. Numeric.
Control variable. Numeric.
Control variable. Numeric.
data(data_med_mod_serial_cat)
dat <- data_med_mod_serial_cat
summary(lm_m1 <- lm(m1 ~ x*w1 + c1 + c2, dat))
summary(lm_m2 <- lm(m2 ~ m1 + x + w1 + c1 + c2, dat))
summary(lm_y <- lm(y ~ m2*w2 + m1 + x + w1 + c1 + c2, dat))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.