Skip to content

SimCorrMix

0.1.1Package record

Simulation of Correlated Data with Multiple Variable Types Including Continuous and Count Mixture Distributions

0packages depend
3.1Kdownloads / year
–test coverage
9/13flavors OK

Overview

About

Generate continuous (normal, non-normal, or mixture distributions), binary, ordinal, and count (regular or zero-inflated, Poisson or Negative Binomial) variables with a specified correlation matrix, or one continuous variable with a mixture distribution. This package can be used to simulate data sets that mimic real-world clinical or genetic data sets (i.e., plasmodes, as in Vaughan et al., 2009 DOI:10.1016/j.csda.2008.02.032). The methods extend those found in the 'SimMultiCorrData' R package. Standard normal variables with an imposed intermediate correlation matrix are transformed to generate the desired distributions. Continuous variables are simulated using either Fleishman (1978)'s third order DOI:10.1007/BF02293811 or Headrick (2002)'s fifth order DOI:10.1016/S0167-9473(02)00072-5 polynomial transformation method (the power method transformation, PMT). Non-mixture distributions require the user to specify mean, variance, skewness, standardized kurtosis, and standardized fifth and sixth cumulants. Mixture distributions require these inputs for the component distributions plus the mixing probabilities. Simulation occurs at the component level for continuous mixture distributions. The target correlation matrix is specified in terms of correlations with components of continuous mixture variables. These components are transformed into the desired mixture variables using random multinomial variables based on the mixing probabilities. However, the package provides functions to approximate expected correlations with continuous mixture variables given target correlations with the components. Binary and ordinal variables are simulated using a modification of ordsample() in package 'GenOrd'. Count variables are simulated using the inverse CDF method. There are two simulation pathways which calculate intermediate correlations involving count variables differently. Correlation Method 1 adapts Yahav and Shmueli's 2012 method DOI:10.1002/asmb.901 and performs best with large count variable means and positive correlations or small means and negative correlations. Correlation Method 2 adapts Barbiero and Ferrari's 2015 modification of the 'GenOrd' package DOI:10.1002/asmb.2072 and performs best under the opposite scenarios. The optional error loop may be used to improve the accuracy of the final correlation matrix. The package also contains functions to calculate the standardized cumulants of continuous mixture distributions, check parameter inputs, calculate feasible correlation boundaries, and summarize and plot simulated variables.

Changes in 0.1.1

Updated some citations.

From NEWS.md in the release

Install

Health

CRAN checks
4NOTE9OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Allison Cynthia Fialkowski <allijazz@uab.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Allison", "Cynthia"),
                    family = "Fialkowski",
                    role = c("aut", "cre"),
                    email = "allijazz@uab.edu")
as necessary.

Found the following (possibly) invalid file URIs:
  URI: corr_bounds.html
    From: inst/doc/method_comp.html
  URI: variable_types
    From: inst/doc/workflow.html
  URI: errorloop.html
    From: inst/doc/workflow.html

Found the following \keyword or \concept entries
which likely give several index terms:
  File ‘intercorr_cont.Rd’:
    \keyword{Fleishman,}
    \keyword{continuous,}
    \keyword{correlation,}
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from:
  ‘MASS’ ‘grid’
All declared Imports should be used.

CRAN check page ↗

Slowest check: 5.2 min · r-oldrel-windows-x86_64
Status changes
  • NOTE9 OK, 4 NOTENow
  • NOTE7 OK, 7 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.1
READMEYes · 920 wordsVignettesYes · 5 · dynamicNEWSYes · 67% structured · mentions 0.1.1Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
29includes a package overview page
Examples that run
100%14 run in a plain check
Exported functions with examples
50%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
97%

Downloads

3.1K
CRAN downloads in the past year
Rank #18,218 · ~9/day · ~261/mo
Daily download trend is not available in this view yet.
26030 days
71790 days
3.1K1 year
Compare downloads with other packages →
Also on72 r2u3 autocran

Repository

5Stars
1Forks
1Open issues
0Open PRs
0Releases
27Commits
1Commit identities
27 commits · Last activity 2018-07-01 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2024-08-17 · 52026-07-07 · 5
PracticesBeta

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

Checks run against github.com/afialkowski/simcorrmix on 2026-10-21.

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

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing SimCorrMix adds 33 packages (15 with compiled code, 26 MB of source tarballs). Heaviest: ggplot2 6.0 MB, cubature 3.2 MB, Rcpp 1.8 MB.

Depends (2)
Imports (11)
BBnleqslvMASSmvtnormMatrixVGAMtriangleggplot2gridstatsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1.0 (2018)

Releases (2)

Pick two releases to compare their code metrics.

  • 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.1.1Latest
    record
    2018-07-01 · current release · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.0
    record
    2018-02-26
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-02-26
Total releases
2 / 8 yrs
License
GPL-2 OSI
Minimum R
≥ 3.4.0
Download size
1.6 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SimCorrMix")

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 SimCorrMix version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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