R/JAGS-lkj-cholesky.R
JAGS_lkj_corr_cholesky.RdCreates JAGS syntax for a Cholesky factor of a correlation matrix with the
same target distribution as Stan's lkj_corr_cholesky(eta), using the
BayesTools compiled JAGS module.
JAGS_lkj_corr_cholesky(
name,
K,
eta = 1,
include_correlation = TRUE,
include_primitives = FALSE
)character scalar. Prefix used for generated JAGS nodes.
integer scalar. Dimension of the correlation matrix.
positive numeric scalar. LKJ concentration parameter.
logical scalar. Whether to generate the
deterministic correlation matrix name_R.
logical scalar. Whether primitive beta/CPC nodes should be included in the returned monitor vector.
A list with JAGS syntax, monitor names, primitive bridge coordinate names and bounds, and metadata for the generated LKJ-Cholesky block.