h_hierarchical_compile_priormodel: Compile the Hierarchical Prior Model

View source: R/HierarchicalModel-class.R

h_hierarchical_compile_priormodelR Documentation

Compile the Hierarchical Prior Model

Description

[Experimental]

Builds the prior part of a hierarchical JAGS model. Unpooled parameters keep their arm-specific fixed priors, while pooled parameters are linked through exchangeable normal distributions with simple hyperpriors.

Usage

h_hierarchical_compile_priormodel(
  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 list with entries priormodel and sample.


crmPack documentation built on July 27, 2026, 5:06 p.m.