Skip to contents

Specify priors

prior_spec()
Specify a prior distribution
prior_config()
Combine priors for a regression model
empirical_bayes_priors()
Data-informed priors: unit-information, empirical Bayes and power priors
build_stanarm_priors()
Translate prior specifications into rstanarm prior arguments
prior_table()
Priors used by a fitted model

Check priors before fitting

prior_predictive_check()
Prior predictive check
plot(<bmb_prior_check>)
Plot a prior predictive check

Fit and check the computation

fit_model_with_prior()
Fit a Bayesian regression model with explicit priors
check_convergence()
Check MCMC convergence with current best-practice diagnostics
plot(<bmb_convergence>)
Plot convergence diagnostics
generate_plot()
Diagnostic plots for MCMC draws

Quantify prior influence

prior_sensitivity()
Prior and likelihood sensitivity by power-scaling
plot(<bmb_prior_sensitivity>)
Plot power-scaling sensitivity
sensitivity_analysis()
Sensitivity analysis across alternative priors
plot(<bmb_sensitivity>)
Plot posterior intervals across prior configurations
plot_prior_posterior()
Compare each prior with its posterior
as_priorsense_draws()
Export a fit for the priorsense package
plot_posterior_distributions()
Plot posterior intervals

Evaluate and report

evaluate_model_performance()
Evaluate predictive performance on test data
compare_performance()
Compare models on the same held-out data
workflow_report() format(<bmb_report>)
Bayesian analysis report (BARG checklist)

Simulate from distributions

Package

bmbeR bmbeR-package
bmbeR: Prior-Focused Bayesian Model Building and Evaluation