simple_med: Dataset (Simple Mediation Model)

simple_medR 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)



semlbci documentation built on June 22, 2024, 10:55 a.m.