Build priors from elicited beliefs (GLM-aware)
prior_build_from_beliefs(
formula,
data,
family = gaussian(),
beliefs = list(),
outcome_location = NULL,
outcome_interval = NULL,
outcome_level = 0.95,
outcome_sd = NULL,
standardise = TRUE,
plausible_range = NULL,
target_coverage = 0.8,
tune = FALSE,
seed = NULL
)An object of class "qbrms_prior_build" containing:
priors: A list of prior specifications.
prior_code: Character string of R code to reproduce the priors.
formula: The (possibly modified) model formula.
data: The (possibly standardised) data.
diagnostics: Prior predictive diagnostic information.
Model formula
Data frame
Model family
List of beliefs about parameters
Expected outcome location
Expected outcome interval
Confidence level for outcome interval
Outcome standard deviation
Whether to standardise predictors
Plausible range for outcomes
Target coverage probability
Whether to tune priors
Random seed