Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.baggr_compare

Plot method for baggr_compare models


Description

Allows plots that compare multiple baggr models that were passed for comparison purposes to baggr compare or run automatically by baggr_compare

Usage

## S3 method for class 'baggr_compare'
plot(
  x,
  style = "areas",
  arrange = "single",
  interval = 0.95,
  hyper = T,
  transform = NULL,
  order = F,
  ...
)

Arguments

x

baggr_compare model to plot

style

What kind of plot to display (if arrange = "grid"), passed to the style argument in baggr_plot.

arrange

If "single" (default), generate a single comparison plot; if "grid", display multiple plots side-by-side.

interval

probability level used for display of posterior interval

hyper

Whether to plot pooled treatment effect in addition to group treatment effects

transform

a function (e.g. exp(), log()) to apply to the values of group (and hyper, if hyper=TRUE) effects before plotting; when working with effects that are on log scale, exponent transform is used automatically, you can plot on log scale by setting transform = identity

order

Whether to order by median treatment effect by group. If not, this sorts group alphabetically. The pooled estimate is always listed first, when applicable.

...

ignored for now, may be used in the future


baggr

Bayesian Aggregate Treatment Effects

v0.4.0
GPL (>= 3)
Authors
Witold Wiecek [cre, aut], Rachael Meager [aut], Brice Green [ctb] (predict(), loo_compare, many visuals), Trustees of Columbia University [cph] (tools/make_cc.R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.