Generated from a simple mediation model, n = 200, two groups, n = 100 each.
Format
A data frame with 500 rows and four variables:
- gp
gp, the grouping variable
- x
x, the independent variable
- m
m, the mediator
- y
y, the dependent variable
Details
This model is used for examples like this one:
library(lavaan)
<- "m ~ x
mod y ~ m"
<- sem(mod, simple_med_mg, gp = "group")
fit summary(fit)