Learn R Programming

baggr (version 0.7.11)

Bayesian Aggregate Treatment Effects

Description

Running and comparing meta-analyses of data with hierarchical Bayesian models in Stan, including convenience functions for formatting data, plotting and pooling measures specific to meta-analysis. This implements many models from Meager (2019) .

Copy Link

Version

Install

install.packages('baggr')

Monthly Downloads

350

Version

0.7.11

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Witold Wiecek

Last Published

June 19th, 2025

Functions in baggr (0.7.11)

labbe

L'Abbe plot for binary data
forest_plot

Draw a forest plot for a baggr model
get_order

Separate out ordering so we can test directly
baggr_theme_set

Set, get, and replace themes for baggr plots
is.baggr_cv

Check if something is a baggr_cv object
plot_quantiles

plot quantiles
mutau_cor

Correlation between mu and tau in a baggr model
print.compare_baggr_cv

Print baggr_cv comparisons
microcredit

7 studies on effect of microcredit supply
print.baggr_cv

Print baggr cv objects nicely
loocv

Leave one group out cross-validation for baggr models
data_spike

Spike & slab example dataset
effect_draw

Make predictive draws from baggr model
plot.baggr

Plotting method for baggr outputs
priors

Prior distributions in baggr
plot.baggr_compare

Plot method for baggr_compare models
print_dist

Output a distribution as a string
plot.baggr_cv

Plotting method for results of baggr LOO analyses
schools

8 schools example
random_effects

Extract only random (treatment) effects from a baggr model
pooling

Pooling metrics and related statistics for baggr
prepare_prior

Prepare prior values for Stan models in baggr
set_prior_val

Add prior values to Stan input for baggr
prepare_ma

Convert individual- to summary-level data in meta-analyses
single_comp_plot

Plot single comparison ggplot in baggr_compare style
microcredit_simplified

Simplified version of the microcredit dataset.
print.baggr

S3 print method for objects of class baggr (model fits)
mint

"Mean and interval" function, including other summaries, calculated for matrix (by column) or vector
treatment_effect

Average treatment effects in a baggr model
print.baggr_compare

Print method for baggr_compare models
yusuf

Yusuf et al: beta-blockers and heart attacks
convert_inputs

Convert inputs for baggr models
baggr_compare

(Run and) compare multiple baggr models
chicks

Chickens: impact of electromagnetic field on calcium ion efflux in chicken brains
baggr-package

baggr - a package for Bayesian meta-analysis
binary_to_individual

Generate individual-level binary outcome data from an aggregate statistics
bubble

Bubble plots for meta-regression models
baggr_plot

Plotting method in baggr package
baggr

Bayesian aggregate treatment effects model
add_color_to_plot

Add colors to baggr plots
effect_plot

Plot predictive draws from baggr model
loo_compare

Compare LOO CV models
fixed_effects

Effects of covariates on outcome in baggr models
group_effects

Extract baggr study/group effects