Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rlkjcorr

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

Clinical Trial Designs in 'rstan'

v0.1.5
GPL (>= 3)
Authors
Kristian Brock [aut, cre] (<https://orcid.org/0000-0002-3921-0166>), Trustees of Columbia University [cph]
Initial release
2020-10-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.