Learn R Programming

powerbrmsINLA (version 1.3.0)

.map_brms_priors_to_inla: Map brms Priors to INLA Priors (Multi-Fixed)

Description

Parses a brms prior specification, mapping supported priors to INLA controls. Supports normal and student_t priors for fixed effects, and exponential priors on residual/group-level SDs via INLA PC precision priors. Unsupported priors are recorded in the audit instead of being silently translated.

Usage

.map_brms_priors_to_inla(
  priors,
  approx_t_as_normal = TRUE,
  pc_alpha = 0.05,
  family_control_supplied = FALSE,
  inla_family = NULL
)

Value

List with $control_fixed, $control_family, $hyper_by_re, and $prior_audit.

Arguments

priors

brms prior object or data.frame.

approx_t_as_normal

Logical; student_t priors with df > 2 are treated as normal.

pc_alpha

Tail probability used for PC precision priors.

family_control_supplied

Logical; if TRUE, translated sigma priors are audited but not applied because direct INLA family controls take precedence.

inla_family

INLA family name, when known.