cvsem

SEM Model Comparison with K-Fold Cross-Validation

CRAN Package

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.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 197 times in the last 30 days. Enough downloads to make a small wave in the niche community. The curiosity is spreading! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 5 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 downloadsMar 3, 2025
0 downloadsMar 4, 2025
6 downloadsMar 5, 2025
6 downloadsMar 6, 2025
7 downloadsMar 7, 2025
7 downloadsMar 8, 2025
1 downloadsMar 9, 2025
5 downloadsMar 10, 2025
8 downloadsMar 11, 2025
7 downloadsMar 12, 2025
13 downloadsMar 13, 2025
4 downloadsMar 14, 2025
7 downloadsMar 15, 2025
2 downloadsMar 16, 2025
6 downloadsMar 17, 2025
7 downloadsMar 18, 2025
7 downloadsMar 19, 2025
14 downloadsMar 20, 2025
6 downloadsMar 21, 2025
6 downloadsMar 22, 2025
6 downloadsMar 23, 2025
12 downloadsMar 24, 2025
9 downloadsMar 25, 2025
5 downloadsMar 26, 2025
4 downloadsMar 27, 2025
7 downloadsMar 28, 2025
2 downloadsMar 29, 2025
7 downloadsMar 30, 2025
2 downloadsMar 31, 2025
11 downloadsApr 1, 2025
8 downloadsApr 2, 2025
5 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
1
14

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 2,619 times in the last 365 days. Consider this 'mid-tier influencer' status—if it were a TikTok, it would get a nod from nieces and nephews. The day with the most downloads was Jan 21, 2025 with 26 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports2 packages
  • Suggests1 package