data_med_mod_serial_parallel_cat | R Documentation |
A serial-parallel mediation model with two categorical moderators.
data_med_mod_serial_parallel_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 in Path 1. Numeric.
Mediator 2 in Path 1. Numeric.
Mediator in Path 2. Numeric.
Outcome variable. Numeric.
Control variable. Numeric.
Control variable. Numeric.
data(data_med_mod_serial_parallel_cat)
dat <- data_med_mod_serial_parallel_cat
summary(lm_m11 <- lm(m11 ~ x*w1 + c1 + c2, dat))
summary(lm_m12 <- lm(m12 ~ m11 + x + w1 + c1 + c2, dat))
summary(lm_m2 <- lm(m2 ~ x + w1 + c1 + c2, dat))
summary(lm_y <- lm(y ~ m12 + m2*w2 + m12 + x + c1 + c2, dat))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.