rlkjcorr: Sample LKJ correlation matrices.

rlkjcorrR Documentation

Sample LKJ correlation matrices.

Description

This function was copied from Richard McElreath's rethinking package hosted at https://github.com/rmcelreath/rethinking. In turn, he appears to have copied it from Ben Bolker's rLKJ function from the emdbook package, although I cannot find it there (else I would have imported it).

Usage

rlkjcorr(n, K, eta = 1)

Arguments

n

Number of matrices to sample.

K

dimenstion of matrix to sample.

eta

Distribution parameter

Value

matrix


trialr documentation built on April 1, 2023, 12:03 a.m.