Skip to contents

Internal helper that builds a named list of brms prior strings based on the chosen prior type, family, and adaptive prior recommendations.

Usage

assemble_brms_priors(
  prior_type,
  prior_effect_mean,
  prior_effect_sd,
  heterogeneous_variance,
  model_family_value,
  adaptive_priors,
  treatment_coef = NULL
)

Arguments

prior_type

Character: "default", "informative", "meta_analytic", or "sensitivity".

prior_effect_mean

Numeric mean for the meta-analytic prior.

prior_effect_sd

Numeric SD for the meta-analytic prior.

heterogeneous_variance

Logical; if TRUE add separate sigma priors.

model_family_value

Character name of the brms family.

adaptive_priors

List from generate_adaptive_priors().

treatment_coef

Optional name of the treatment coefficient. When supplied with an informative or meta-analytic prior type, the elicited treatment prior targets only this coefficient (coef) and a weakly-informative default covers the remaining b coefficients.

Value

Named list of prior specifications with attributes.