print.lavaan_rerun {semfindr}R Documentation

Print Method for 'lavaan_rerun'

Description

Prints the results of lavaan_rerun().

Usage

## S3 method for class 'lavaan_rerun'
print(x, ...)

Arguments

x

The output of lavaan_rerun().

...

Other arguments. They will be ignored.

Value

x is returned invisibly. Called for its side effect.

Author(s)

Shu Fai Cheung https://orcid.org/0000-0002-9871-9448

Examples

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


[Package semfindr version 0.1.8 Index]