pa_dat {semfindr} | R Documentation |
Sample Data: A Path Model
Description
A four-variable dataset with 100 cases.
Usage
pa_dat
Format
A data frame with 100 rows and 5 variables:
- m1
Mediator. Numeric.
- dv
Outcome variable. Numeric.
- iv1
Predictor. Numeric.
- iv2
Predictor. Numeric.
Examples
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)
[Package semfindr version 0.1.8 Index]