semTests: Robust Test Statistics for Structural Equation Models

Computes robust p-values for overall fit and nested comparisons of structural equation models fitted with 'lavaan'. Implements penalized eigenvalue block averaging and penalized regression (Foldnes, Moss, Grønneberg, 2025) <doi:10.1080/10705511.2024.2372028>, including their extension to nested models (Foldnes, Grønneberg, Moss, 2026) <doi:10.3758/s13428-026-02968-4>, alongside familiar corrections such as Satorra-Bentler. Supported settings include complete-data ML, GLS, and ULS, categorical DWLS and ULS, and full-information maximum likelihood with one or several groups. Score and criterion-difference tests of parameter restrictions are also available, including restrictions in misspecified models.

Version: 2.0.0
Depends: R (≥ 3.5.0)
Imports: lavaan (≥ 0.7-3), methods, pbivnorm
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-10-29
DOI: 10.32614/CRAN.package.semTests
Author: Jonas Moss ORCID iD [aut, cre], Njål Foldnes ORCID iD [ctb], Steffen Grønneberg ORCID iD [ctb]
Maintainer: Jonas Moss <jonas.moss.statistics at gmail.com>
License: GPL (≥ 3)
URL: https://github.com/JonasMoss/semTests
NeedsCompilation: no
Citation: semTests citation info
Materials: README, NEWS
CRAN checks: semTests results

Documentation:

Reference manual: semTests.html , semTests.pdf
Vignettes: Ordinal indicators and measurement invariance (source, R code)
Missing data with FIML (source, R code)
Score and criterion tests (source, R code)
Getting started with semTests (source, R code)

Downloads:

Package source: semTests_2.0.0.tar.gz
Windows binaries: r-devel: semTests_1.0.0.zip, r-release: semTests_1.0.0.zip, r-oldrel: semTests_1.0.0.zip
macOS binaries: r-release (arm64): semTests_1.0.0.tgz, r-oldrel (arm64): semTests_1.0.0.tgz, r-release (x86_64): semTests_2.0.0.tgz, r-oldrel (x86_64): semTests_1.0.0.tgz
Old sources: semTests archive

Linking:

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