rcorr: Generate Random Correlation Matrices

Description Usage Arguments Value Examples

View source: R/rcorr.R

Description

Generate Random Correlation Matrices

Usage

1
rcorr(p, eta = 1, df = NULL, method = "lkj")

Arguments

p

The number of variabes to simulate

eta

The regularization parameter. Larger values result in smaller correlations. Only applies to method = "lkj"

df

The degrees of freedom. Only applies to method = "wishart"

One

of "lkj" (the default) or "wishart"

Value

a correlation matrix

Examples

1
rcorr(10, 2)

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.