lav_compare: Combine fit measures form several models and compare

lav_compareR Documentation

Combine fit measures form several models and compare

Description

Combine fit measures form several models and compare

Usage

lav_compare(
  ...,
  what = c("cfi", "tli", "rmsea", "srmr", "bic", "df"),
  LRT = F,
  print = T
)

Arguments

...

lavaan fitted objects

what

Character vector of fit indices as given in lavaan 'fitMeasures()'

Details

Extracts select fit measures from lavaan objects and lists it in the tables.

Examples

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") )



MaksimRudnev/LittleHelpers documentation built on Nov. 5, 2024, 10:16 p.m.