Learn R Programming

powerbrmsINLA (version 1.3.0)

.brms_to_inla_formula2: Convert brms Formula to INLA Formula (Multi-Fixed Support)

Description

Converts brms-style formula to INLA-ready formula, robust to multi-effect, and random effects.

Usage

.brms_to_inla_formula2(formula, drop_fixed = NULL, hyper_by_re = NULL)

Value

List: $inla_formula, $re_specs, and $re_hyper_groups.

Arguments

formula

brms-style formula.

drop_fixed

Character vector of fixed effects to drop (optional).

hyper_by_re

Optional named list of INLA hyper prior specifications by random-effect grouping factor.