gmat

An R package for simulating correlation matrices possibly constrained by acyclic directed and undirected graphs.

CRAN status Lifecycle: maturing CRAN downloads

Installation

The package is available on CRAN, to get the latest stable version use:

install.packages("gmat")

Alternatively, using the R package devtools one may install the development version:

# install.packages("devtools")
devtools::install_github("irenecrsn/gmat")

The other R packages required for gmat are igraph and gRbase, which can be installed from CRAN and Bioconductor.

Overview

The package mostly implements methods described in the following papers:

See examples of use and more at package’s manual.