One correlation sample from the LKJ distribution
rLKJ1(d, eta = 1, cholesky = FALSE)
d
: The dimension of the correlation matrixeta
: The scaling parameter of the LKJ distribution. Must be > 1. Also related to the degrees of freedom nu. eta = (nu-1)/2.cholesky
: boolean; If TRUE
return the cholesky decomposition.A correlation sample from the LKJ distribution
Matthew Fidler (translated to RcppArmadillo) and Emma Schwager
Useful links