pa_dat | R Documentation |
A four-variable dataset with 100 cases.
pa_dat
A data frame with 100 rows and 5 variables:
Mediator. Numeric.
Outcome variable. Numeric.
Predictor. Numeric.
Predictor. Numeric.
library(lavaan)
data(pa_dat)
mod <-
"
m1 ~ a1 * iv1 + a2 * iv2
dv ~ b * m1
a1b := a1 * b
a2b := a2 * b
"
fit <- sem(mod, pa_dat)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.