Creates 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
)

Arguments

name

character scalar. Prefix used for generated JAGS nodes.

K

integer scalar. Dimension of the correlation matrix.

eta

positive numeric scalar. LKJ concentration parameter.

include_correlation

logical scalar. Whether to generate the deterministic correlation matrix name_R.

include_primitives

logical scalar. Whether primitive beta/CPC nodes should be included in the returned monitor vector.

Value

A list with JAGS syntax, monitor names, primitive bridge coordinate names and bounds, and metadata for the generated LKJ-Cholesky block.