sem_dat | R Documentation |
A nine-variable dataset with 200 cases.
sem_dat
A data frame with 200 rows and 9 variables:
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
Indicator. Numeric.
library(lavaan)
data(sem_dat)
mod <-
"
f1 =~ x1 + x2 + x3
f2 =~ x4 + x5 + x6
f3 =~ x7 + x8 + x9
f2 ~ a * f1
f3 ~ b * f2
ab := a * b
"
fit <- sem(mod, sem_dat)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.