Learn R Programming

crmPack (version 2.2.1)

h_hierarchical_compile_init: Compile the Hierarchical Initial-Value Function

Description

[Experimental]

Wraps the per-arm init functions and renames their outputs so they match the dynamically generated hierarchical JAGS variable names.

Usage

h_hierarchical_compile_init(
  models_to_arms,
  parameter_pools,
  pool_correlations = list()
)

Value

A function returning a named list of JAGS initial values.

Arguments

models_to_arms

(list)
named arm-specific models.

parameter_pools

(list)
exchangeable parameter specification from HierarchicalModel().

pool_correlations

(list)
optional named list pairing exactly two scalar exchangeable pools into correlated bivariate normal blocks. Higher dimensional correlation blocks, such as correlations across three or more parameters, are not supported.