SimJoint: Simulate Joint Distribution

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 <doi:10.1080/03610918208812265> and the Ruscio-Kaczetow iteration (2008) <doi:10.1080/00273170802285693>. 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.

Version: 0.3.12
Imports: Rcpp (≥ 1.0.0)
LinkingTo: Rcpp, RcppArmadillo
Suggests: R.rsp
Published: 2024-01-14
DOI: 10.32614/CRAN.package.SimJoint
Author: Charlie Wusuo Liu
Maintainer: Charlie Wusuo Liu <liuwusuo at gmail.com>
License: GPL-3
NeedsCompilation: yes
SystemRequirements: GNU make
Materials: NEWS
In views: Distributions
CRAN checks: SimJoint results

Documentation:

Reference manual: SimJoint.pdf
Vignettes: SimulatedJointDistribution

Downloads:

Package source: SimJoint_0.3.12.tar.gz
Windows binaries: r-devel: SimJoint_0.3.12.zip, r-release: SimJoint_0.3.12.zip, r-oldrel: SimJoint_0.3.12.zip
macOS binaries: r-release (arm64): SimJoint_0.3.12.tgz, r-oldrel (arm64): SimJoint_0.3.12.tgz, r-release (x86_64): SimJoint_0.3.12.tgz, r-oldrel (x86_64): SimJoint_0.3.12.tgz
Old sources: SimJoint archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=SimJoint to link to this page.