h_hierarchical_compile_modelspecs: Compile the Hierarchical Model-Specification Function

View source: R/HierarchicalModel-class.R

h_hierarchical_compile_modelspecsR Documentation

Compile the Hierarchical Model-Specification Function

Description

[Experimental]

Creates the modelspecs function used by mcmc() to prepare the JAGS data needed by the dynamically compiled hierarchical model.

Usage

h_hierarchical_compile_modelspecs(
  models_to_arms,
  parameter_pools,
  pool_correlations = list(),
  pool_priors = list()
)

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.

pool_priors

(list)
optional named list of pool-specific hyperprior overrides.

Value

A function returning the JAGS data list.


crmPack documentation built on July 5, 2026, 9:06 a.m.