View source: R/print_lavaan_rerun.R
print.lavaan_rerun | R Documentation |
Prints the results of lavaan_rerun()
.
## S3 method for class 'lavaan_rerun'
print(x, ...)
x |
The output of |
... |
Other arguments. They will be ignored. |
x
is returned invisibly. Called for its side effect.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
library(lavaan)
dat <- pa_dat
# For illustration only, select only the first 50 cases
dat <- dat[1:50, ]
# The model
mod <-
"
m1 ~ iv1 + iv2
dv ~ m1
"
# Fit the model
fit <- lavaan::sem(mod, dat)
summary(fit)
# Fit the model n times. Each time with one case removed.
fit_rerun <- lavaan_rerun(fit, parallel = FALSE)
fit_rerun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.