Skip to content

cvsem

1.0.0Package record

SEM Model Comparison with K-Fold Cross-Validation

0packages depend
2.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Install

Health

CRAN checks
13OK
Slowest check: 53 s · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 489 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Description cites a JSS article
Help pages
7 (1 internal)
Examples that run
100%2 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
57% with a bibliography file

Downloads

2.8K
CRAN downloads in the past year
Rank #14,381 · ~8/day · ~230/mo
Daily download trend is not available in this view yet.
21130 days
83290 days
2.8K1 year
Compare downloads with other packages →
Also on72 r2u4 autocran

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing cvsem adds 7 packages (4 with compiled code, 3.2 MB of source tarballs). Heaviest: lavaan 1.6 MB, rbibutils 1.1 MB, Rdpack 370 KB.

Depends (0)
none
Imports (3)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 1.0.0 (2022)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0Latest
    2022-08-13 · current release
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-08-13
Total releases
1 / 4 yrs
License
GPL (>= 3) OSI
Download size
19 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cvsem")
Wysocki, A., Rast, P., Siegel, D., & allen, C. (2022). cvsem: SEM Model Comparison with K-Fold Cross-Validation (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.cvsem

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cvsem version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy