data_med_mod_serial_parallel_cat {manymome} | R Documentation |
Sample Dataset: Serial-Parallel Moderated Mediation with Two Categorical Moderators
Description
A serial-parallel mediation model with two categorical moderators.
Usage
data_med_mod_serial_parallel_cat
Format
A data frame with 300 rows and 8 variables:
- x
Predictor. Numeric.
- w1
Moderator. String. Values: "group1", "group2", "group3"
- w2
Moderator. String. Values: "team1", "team2"
- m11
Mediator 1 in Path 1. Numeric.
- m12
Mediator 2 in Path 1. Numeric.
- m2
Mediator in Path 2. Numeric.
- y
Outcome variable. Numeric.
- c1
Control variable. Numeric.
- c2
Control variable. Numeric.
Examples
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))
[Package manymome version 0.2.2 Index]