simple_med_mg | R Documentation |
Generated from a simple mediation model, n = 200, two groups, n = 100 each.
simple_med_mg
A data frame with 500 rows and four variables:
gp, the grouping variable
x, the independent variable
m, the mediator
y, the dependent variable
This model is used for examples like this one:
library(lavaan) mod <- "m ~ x y ~ m" fit <- sem(mod, simple_med_mg, gp = "group") summary(fit)
print(head(simple_med_mg), digits = 3)
nrow(simple_med_mg)
table(simple_med_mg$gp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.