Skip to content
This package was removed from CRAN on 2019-12-21. Its history is shown below.
Reason: check problems were not corrected in time
Details below reflect version 0.1.0, its last release before removal.

SimRepeat

0.1.0Package record

Simulation of Correlated Systems of Equations with Multiple Variable Types

0packages depend
–downloads / year
–test coverage
–flavors OK

Overview

About

Generate correlated systems of statistical equations which represent repeated measurements or clustered data. These systems contain either: a) continuous normal, non-normal, and mixture variables based on the techniques of Headrick and Beasley (2004) DOI:10.1081/SAC-120028431 or b) continuous (normal, non-normal and mixture), ordinal, and count (regular or zero-inflated, Poisson and Negative Binomial) variables based on the hierarchical linear models (HLM) approach. Headrick and Beasley's method for continuous variables calculates the beta (slope) coefficients based on the target correlations between independent variables and between outcomes and independent variables. The package provides functions to calculate the expected correlations between outcomes, between outcomes and error terms, and between outcomes and independent variables, extending Headrick and Beasley's equations to include mixture variables. These theoretical values can be compared to the simulated correlations. The HLM approach requires specification of the beta coefficients, but permits group and subject-level independent variables, interactions among independent variables, and fixed and random effects, providing more flexibility in the system of equations. Both methods permit simulation of data sets that mimic real-world clinical or genetic data sets (i.e. plasmodes, as in Vaughan et al., 2009, <10.1016/j.csda.2008.02.032>). The techniques extend those found in the 'SimMultiCorrData' and 'SimCorrMix' packages. Standard normal variables with an imposed intermediate correlation matrix are transformed to generate the desired distributions. Continuous variables are simulated using either Fleishman's third-order (DOI:10.1007/BF02293811) or Headrick's fifth-order (DOI:10.1016/S0167-9473(02)00072-5) power method transformation (PMT). Simulation occurs at the component-level for continuous mixture distributions. These components are transformed into the desired mixture variables using random multinomial variables based on the mixing probabilities. The target correlation matrices are specified in terms of correlations with components of continuous mixture variables. Binary and ordinal variables are simulated by discretizing the normal variables at quantiles defined by the marginal distributions. Count variables are simulated using the inverse CDF method. There are two simulation pathways for the multi-variable type systems which differ by intermediate correlations involving count variables. 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. There are three methods available for correcting non-positive definite correlation matrices. The optional error loop may be used to improve the accuracy of the final correlation matrices. The package also provides function to check parameter inputs and summarize the simulated systems of equations.

Changes in 0.1.0

Initial package release.

From NEWS.md in the release

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Advisories

none known

Documentation

In release 0.1.0
READMEYes · 2,896 wordsVignettesYes · 4 · dynamicNEWSYes · 33% structured · mentions 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
11includes a package overview page
Examples that run
100%10 run in a plain check
Exported functions with examples
100%
Documented parameters
99%
Return-value docs
100%
Help pages citing references
100%

Downloads

SimRepeat
Daily download trend is not available in this view yet.

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Imports (10)
BBnleqslvMASSMatrixVGAMtriangleggplot2gridstatsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
–indirect (not tracked)

Nothing depends on this yet.

Code & Tests

People & History

People (1)

Maintainer since 0.1.0 (2018)

Releases (1)
  • R
    R 4.0.0 released · 2020-04-24
  • archivedRemoved from CRAN
    2019-12-21
    check problems were not corrected in time
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.0
    2018-04-16
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-04-16
Total releases
1 / 8 yrs
License
GPL-2 OSI
Minimum R
≥ 3.4.0

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SimRepeat")
Fialkowski, A. C. (n.d.). SimRepeat: Simulation of Correlated Systems of Equations with Multiple Variable Types (Version 0.1.0) [Computer software]. Retrieved October 27, 2026, from https://CRAN.R-project.org/package=SimRepeat

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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

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