Package: covsim 1.2.0

Njaal Foldnes

covsim: VITA, IG, PLSIM and VM Simulation for Given Covariance and Marginals

Random sampling from distributions with user-specified population covariance matrix. Marginal information may be fully specified, for which the package implements the VITA (VIne-To-Anything) algorithm Grønneberg and Foldnes (2017) <doi:10.1007/s11336-017-9569-6>. See also Grønneberg, Foldnes and Marcoulides (2022) <doi:10.18637/jss.v102.i03>. Alternatively, marginal skewness and kurtosis may be specified, for which the package implements the IG (independent generator), PLSIM (piecewise linear) and VM (Vale-Maurelli) algorithms, see Foldnes and Olsson (2016) <doi:10.1080/00273171.2015.1133274>, Foldnes and Grønneberg (2021) <doi:10.1080/10705511.2021.1949323> and Vale and Maurelli (1983) <doi:10.1007/BF02293687>, respectively.

Authors:Njaal Foldnes [aut, cre], Steffen Grønneberg [aut]

covsim_1.2.0.tar.gz
covsim_1.2.0.zip(r-4.7-any)covsim_1.2.0.zip(r-4.6-any)
covsim_1.2.0.tar.gz(r-4.7-any)covsim_1.2.0.tar.gz(r-4.6-any)
covsim_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
covsim/json (API)

# Install 'covsim' in R:
install.packages('covsim', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4.20 score 1 packages 35 scripts 774 downloads 9 exports 20 dependencies

Last updated from:bd5b23d9dc. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK146
source / vignettesOK281
linux-releaseOK162
windows-develOK94
windows-releaseOK116
wasm-releaseOK131

Exports:calibrate_igcalibrate_plsimcalibrate_vitacalibrate_vmrIGrPLSIMrVMsimulate_estimatevita

Dependencies:assertthatBHkde1dlatticelavaanMASSMatrixmnormtnleqslvnumDerivpbivnormPearsonDSquadprograndtoolboxRcppRcppEigenRcppThreadrngWELLrvinecopulibwdm

Covsim: Simulating non-normal data with given covariance matrix
VITA | Bivariate case | Trivariate case | SEM example in 20 dimensions | Ordinal-categorical data | We assume that the underlying correlation in acontinuous bivariate distribution with standard normal marginals is$\rho=0.5$, and we discretize into three categories using thresholds$\tau_1=0$ and $ \tau_2=1$. This means that we consider simulated dataof the form[X_i =\left{ \begin{matrix}1, & \text{if } \xi_i \leq \tau_1 \2, & \text{if } \tau_1 < \xi_i \leq \tau_2 \3, & \text{if } \xi_i > \tau_2 \\end{matrix}\right. | IG and Piecewise linear methods | IG | PLSIM | References

Last update: 2026-10-29
Started: 2022-04-29

Monte Carlo studies with covsim
The population | Calibrating the data generators | Part 1: the study by hand | A list of samples | Fitting the model and collecting the results | Part 2: the study with simulate_estimate() | The extractor: what to keep from each fit | Estimation with lavaan | Fit indices | Parameter estimates, standard errors and coverage | Reproducibility and parallel computing | Estimation with magmaan | Speed | Installing magmaan | Any estimator: a user-supplied fit function

Last update: 2026-10-29
Started: 2026-10-29

The calibrate / simulate workflow in covsim
Motivation | The general pattern | IG (Independent Generator) | PLSIM (Piecewise Linear) | VM (Vale-Maurelli) | From calibration to a Monte Carlo study | VITA (Vine-To-Anything) | When to use the wrappers vs the new API

Last update: 2026-10-29
Started: 2026-10-29