modelscompete4: Compare Nested and Non-Nested Structural Equation Models

A comprehensive package for comparing multiple Structural Equation Models (SEM). Supports both nested and non-nested model comparisons, chi-square difference tests, and extraction of multiple fit indices including AIC (Akaike Information Criterion), BIC (Bayesian Information Criterion), CFI (Comparative Fit Index), TLI (Tucker-Lewis Index), RMSEA (Root Mean Square Error of Approximation), and SRMR (Standardized Root Mean Square Residual). Built on top of the 'lavaan' package for seamless SEM model comparison workflows. The Vuong test (Vuong, 1989) for non-nested models is used as the statistical test.

Version: 0.2.6
Imports: lavaan (≥ 0.6), stats, boot, ggplot2, nonnest2, tidyr
Suggests: testthat (≥ 3.0.0)
Published: 2026-04-24
DOI: 10.32614/CRAN.package.modelscompete4
Author: Jerf Yeung [aut, cre]
Maintainer: Jerf Yeung <ssjerf at gmail.com>
BugReports: https://github.com/ssjerf-stack/modelscompete4/issues
License: GPL (≥ 3)
URL: https://github.com/ssjerf-stack/modelscompete4
NeedsCompilation: no
Materials: README
CRAN checks: modelscompete4 results

Documentation:

Reference manual: modelscompete4.html , modelscompete4.pdf

Downloads:

Package source: modelscompete4_0.2.6.tar.gz
Windows binaries: r-release: modelscompete4_0.2.6.zip, r-oldrel: modelscompete4_0.2.6.zip
macOS binaries: r-release (arm64): modelscompete4_0.2.6.tgz, r-oldrel (arm64): modelscompete4_0.2.6.tgz, r-release (x86_64): modelscompete4_0.2.6.tgz, r-oldrel (x86_64): modelscompete4_0.2.6.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=modelscompete4 to link to this page.