Skip to content

cvsem

1.0.0

SEM Model Comparison with K-Fold Cross-Validation

0packages depend
2.7Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Anna WysockiFirst published 2022-08-131 releasesCRAN page ↗

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: 56 s · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 489 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
57%

Downloads

2.7K
CRAN downloads in the past year
Rank #14,587 · ~7/day · ~222/mo
Daily download trend is not available in this view yet.
29430 days
73090 days
2.7K1 year
Compare downloads with other packages →
Also on96 r2u21 autocran

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (3)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

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

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 is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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-08-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-26, 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