Learn R Programming

SimJoint (version 0.3.12)

Simulate Joint Distribution

Description

Simulate multivariate correlated data given nonparametric marginals and their joint structure characterized by a Pearson or Spearman correlation matrix. The simulator engages the problem from a purely computational perspective. It assumes no statistical models such as copulas or parametric distributions, and can approximate the target correlations regardless of theoretical feasibility. The algorithm integrates and advances the Iman-Conover (1982) approach and the Ruscio-Kaczetow iteration (2008) . Package functions are carefully implemented in C++ for squeezing computing speed, suitable for large input in a manycore environment. Precision of the approximation and computing speed both substantially outperform various CRAN packages to date. Benchmarks are detailed in function examples. A simple heuristic algorithm is additionally designed to optimize the joint distribution in the post-simulation stage. The heuristic demonstrated good potential of achieving the same level of precision of approximation without the enhanced Iman-Conover-Ruscio-Kaczetow. The package contains a copy of Permuted Congruential Generator.

Copy Link

Version

Install

install.packages('SimJoint')

Monthly Downloads

220

Version

0.3.12

License

GPL-3

Maintainer

Charlie Wusuo Liu

Last Published

January 14th, 2024

Functions in SimJoint (0.3.12)

xSJpearson

Simulate joint given marginals, Pearson correlations and uncorrelated support matrix.
xSJpearsonPMF

Simulate joint with marginal PMFs, Pearson correlations and uncorrelated support matrix.
decor

Create uncorrelated data
SJspearmanPMF

Simulate joint with marginal PMFs and Spearman correlations.
LHSpmf

Sample from probability mass function
postSimOpt

Post simulation optimization
exportRandomState

Export Permuted Congruential Generator
SJspearman

Simulate joint given marginals and Spearman correlations.
SJpearsonPMF

Simulate joint with marginal PMFs and Pearson correlations.
SJpearson

Simulate joint given marginals and Pearson correlations.