simple_med {semlbci} | R Documentation |
Dataset (Simple Mediation Model)
Description
Generated from a simple mediation model, n = 200
Usage
simple_med
Format
A data frame with 200 rows and three variables:
- 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) mod <- "m ~ x y ~ m" fit <- cfa(mod, simple_med) summary(fit)
Examples
print(head(simple_med), digits = 3)
nrow(simple_med)
[Package semlbci version 0.11.2 Index]