SimRepeat (0.1.0)
Simulation of Correlated Systems of Equations with Multiple Variable Types.
https://github.com/AFialkowski/SimRepeat
http://cran.rproject.org/web/packages/SimRepeat
Generate correlated systems of statistical equations which represent repeated measurements or clustered data. These systems contain either: a) continuous normal, nonnormal, and mixture variables based on the techniques of Headrick and Beasley (2004) or b) continuous (normal, nonnormal and mixture), ordinal, and count (regular or zeroinflated, 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 subjectlevel 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 realworld clinical or genetic data sets (i.e. plasmodes, as in Vaughan et al., 2009, ). 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 thirdorder () or Headrick's fifthorder () power method transformation (PMT). Simulation occurs at the componentlevel 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 multivariable type systems which differ by intermediate correlations involving count variables. Correlation Method 1 adapts Yahav and Shmueli's 2012 method 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 and performs best under the opposite scenarios. There are three methods available for correcting nonpositive 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.
Maintainer:
Allison Cynthia Fialkowski
Author(s): Allison Cynthia Fialkowski
License: GPL2
Uses: BB, ggplot2, MASS, Matrix, nleqslv, SimCorrMix, SimMultiCorrData, triangle, VGAM, nlme, testthat, reshape2, knitr, rmarkdown, bookdown, printr
Released 5 days ago.
Ratings
Overall: 

Documentation: 

Log in to vote.
Reviews
No one has written a review of SimRepeat yet. Want to be the first? Write one now.
Related packages: … (20 best matches, based on common tags.)
Search for SimRepeat on google, google scholar, rhelp, rdevel.
Visit SimRepeat on R Graphical Manual.