lav_compare | R Documentation |
Combine fit measures form several models and compare
lav_compare(
...,
what = c("cfi", "tli", "rmsea", "srmr", "bic", "df"),
LRT = F,
print = T
)
... |
lavaan fitted objects |
what |
Character vector of fit indices as given in lavaan 'fitMeasures()' |
Extracts select fit measures from lavaan objects and lists it in the tables.
data("HolzingerSwineford1939", package="lavaan")
m1 = cfa("F1 =~ x1 + x2 + x3 + x4 + x5", estimator= "mlr", HolzingerSwineford1939)
m2 = cfa("F1 =~ x1 + x2 + x3 + x4 + x5; x4 ~~ x5", estimator= "mlr", HolzingerSwineford1939)
lav_compare(m1, m2, what = c("cfi.scaled", "rmsea.scaled") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.