| .map_brms_priors_to_inla | R Documentation |
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.
.map_brms_priors_to_inla(
priors,
approx_t_as_normal = TRUE,
pc_alpha = 0.05,
family_control_supplied = FALSE,
inla_family = NULL
)
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. |
List with $control_fixed, $control_family, $hyper_by_re, and $prior_audit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.