cvsem: SEM Model Comparison with K-Fold Cross-Validation

The goal of 'cvsem' is to provide functions that allow for comparing Structural Equation Models (SEM) using cross-validation. Users can specify multiple SEMs using 'lavaan' syntax. 'cvsem' computes the Kullback Leibler (KL) Divergence between 1) the model implied covariance matrix estimated from the training data and 2) the sample covariance matrix estimated from the test data described in Cudeck, Robert & Browne (1983) <doi:10.18637/jss.v048.i02>. The KL Divergence is computed for each of the specified SEMs allowing for the models to be compared based on their prediction errors.

Version: 1.0.0
Imports: lavaan, stats, Rdpack
Suggests: testthat (≥ 3.0.0)
Published: 2022-08-13
Author: Anna Wysocki [aut, cre], Danielle Siegel [aut], Cameron allen [aut], Philippe Rast [aut]
Maintainer: Anna Wysocki <awysocki at ucdavis.edu>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: README
CRAN checks: cvsem results

Documentation:

Reference manual: cvsem.pdf

Downloads:

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

Linking:

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