| lavaan_fit | R Documentation |
Returns the raw lavaan object stored in x$lavaan_fit. For
continuous ESEM/B-ESEM and method = "lavaan" ordered fits, this is the
fitted model. For besem_ordered(method = "rotation") (and
esem_ordered(method = "rotation")), it is often an auxiliary
one-factor CFA used for DWLS weights only—see
The lavaan_fit slot on custom WLSMV fits.
Use lavaan::lavTestScore(), lavaan::lavInspect(), etc. only when
that slot represents the model you intend to analyse.
lavaan_fit(x)
x |
An |
A lavaan object.
data("HolzingerSwineford1939", package = "lavaan")
d <- HolzingerSwineford1939[, paste0("x", 1:9)]
fit <- esem(d, nfactors = 3)
lav <- lavaan_fit(fit)
# Inspect the underlying lavaan model
lavaan::lavInspect(lav, "cor.lv") # factor correlations
lavaan::fitMeasures(lav, c("cfi", "rmsea"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.