SimMultiCorrData (0.2.2)

0 users

Simulation of Correlated Data with Multiple Variable Types.

https://github.com/AFialkowski/SimMultiCorrData
http://cran.r-project.org/web/packages/SimMultiCorrData

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 () or Headrick's fifth-order () 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, ). In Correlation Method 2, the count variables are treated as ordinal (adapting Barbiero and Ferrari's 2015 modification of GenOrd, ). 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.

Maintainer: Allison Cynthia Fialkowski
Author(s): Allison Cynthia Fialkowski

License: GPL-2

Uses: BB, GenOrd, ggplot2, Matrix, nleqslv, psych, triangle, VGAM, testthat, knitr, rmarkdown, printr
Reverse depends: SimCorrMix, SimRepeat

Released about 1 year ago.


3 previous versions

Ratings

Overall:

  (0 votes)

Documentation:

  (0 votes)

Log in to vote.

Reviews

No one has written a review of SimMultiCorrData yet. Want to be the first? Write one now.


Related packages:(20 best matches, based on common tags.)


Search for SimMultiCorrData on google, google scholar, r-help, r-devel.

Visit SimMultiCorrData on R Graphical Manual.