| fit_indices | R Documentation |
Returns CFI, TLI, RMSEA (with 90\
character vector. Uses the .scaled variants when the fit was
estimated with MLR/WLSMV, matching Mplus's default output. For B-ESEM /
ESEM WLSMV fits that carry pre-computed Mplus-matched values in
$wlsmv_stats, those values are used directly and the RMSEA CI is
computed from the scaled chi-square via non-central chi-squared inversion
(MacCallum, Browne & Sugawara, 1996).
fit_indices(fit)
fit |
An |
A named character vector with elements "CFI", "TLI",
"RMSEA [90% CIs]", and "SRMR". Stack rows with
rbind() (wrapped in noquote()) to build a comparison
table.
data("HolzingerSwineford1939", package = "lavaan")
d <- HolzingerSwineford1939[, paste0("x", 1:9)]
fit_e <- esem(d, nfactors = 3)
fit_b <- besem(d, specific_factors = list(
Visual = c("x1", "x2", "x3"),
Textual = c("x4", "x5", "x6"),
Speed = c("x7", "x8", "x9")
), n_starts = 5L)
noquote(rbind(
ESEM = fit_indices(fit_e),
BESEM = fit_indices(fit_b)
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.