SimMultiCorrData
0.2.2Simulation of Correlated Data with Multiple Variable Types
Overview
Generate continuous (normal or non-normal), binary, ordinal, and count (Poisson or Negative Binomial) variables with a specified correlation matrix. It can also produce a single continuous variable. This package can be used to simulate data sets that mimic real-world situations (i.e. clinical or genetic data sets, plasmodes). All variables are generated from standard normal variables with an imposed intermediate correlation matrix. Continuous variables are simulated by specifying mean, variance, skewness, standardized kurtosis, and fifth and sixth standardized cumulants using either Fleishman's third-order (DOI:10.1007/BF02293811) or Headrick's fifth-order (DOI:10.1016/S0167-9473(02)00072-5) polynomial transformation. Binary and ordinal variables are simulated using a modification of the ordsample() function from 'GenOrd'. Count variables are simulated using the inverse cdf method. There are two simulation pathways which differ primarily according to the calculation of the intermediate correlation matrix. In Correlation Method 1, the intercorrelations involving count variables are determined using a simulation based, logarithmic correlation correction (adapting Yahav and Shmueli's 2012 method, DOI:10.1002/asmb.901). In Correlation Method 2, the count variables are treated as ordinal (adapting Barbiero and Ferrari's 2015 modification of GenOrd, DOI:10.1002/asmb.2072). There is an optional error loop that corrects the final correlation matrix to be within a user-specified precision value of the target matrix. The package also includes functions to calculate standardized cumulants for theoretical distributions or from real data sets, check if a target correlation matrix is within the possible correlation bounds (given the distributions of the simulated variables), summarize results (numerically or graphically), to verify valid power method pdfs, and to calculate lower standardized kurtosis bounds.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation signals are not tracked yet for this package.
Downloads
Repository
Repository practices
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/afialkowski/simmulticorrdata on 2026-07-19.
Dependencies
Code & Tests
Datasets
People & History
Author records are not tracked yet for this package.
4 releases. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.2.2Latest
- RR 3.5.0 released · 2018-04-23
- 0.2.12017-11-09 · diff ↗
- 0.2.02017-10-25 · diff ↗
- 0.1.02017-06-30
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-06-30
- Total releases
- 4 / 9 yrs
- License
- GPL-2 OSI
- Download size
- 900 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet