Skip to content

SimMultiCorrData

0.2.2

Simulation of Correlated Data with Multiple Variable Types

3packages depend
8.9Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Allison Cynthia FialkowskiFirst published 2017-06-304 releasesCRAN page ↗GitHub ↗

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

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 9.2 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
11
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 703 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
64%
Documented parameters
99%
Return-value docs
100%
References docs
95%

Downloads

8.9K
CRAN downloads in the past year
Rank #5,505 · ~24/day · ~744/mo
Daily download trend is not available in this view yet.
40430 days
1.4K90 days
8.9K1 year
Compare downloads with other packages →
Also on176 r2u19 autocran

Repository

Repository
12Stars
3Forks
1Open issues
0Open PRs
0Releases
23Commits
1Contributors
23 commits · Last activity 2018-06-28

Stars over time

2024-11-25 · 122026-07-07 · 12

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/afialkowski/simmulticorrdata on 2026-08-16.

CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.3.0
Imports (11)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
8indirect

Code & Tests

Datasets

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (1)
no longer listed · 0.1.0 to 0.2.2
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 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
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.2Latest
    2018-06-28 · current release · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.1
    2017-11-09 · diff ↗
  • 0.2.0
    2017-10-25 · diff ↗
  • 0.1.0
    2017-06-30
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-06-30
Total releases
4 / 9 yrs
License
GPL-2 OSI
Minimum R
≥ 3.3.0
Bundled data
2.3 KB / 2 files
Download size
900 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SimMultiCorrData")

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 SimMultiCorrData version 0.2.2 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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