Learn R Programming

crmPack (version 2.2.1)

h_hierarchical_compile_modelspecs: 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()
)

Value

A function returning the JAGS data 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.