Extract baggr study effects
Given a baggr object, returns the raw MCMC draws of the posterior for each group's effect, or a summary of these draws. This is an internal function currently used as a helper for plotting and printing of results.
group_effects(bg, summary = FALSE, transform = NULL, interval = 0.95)
bg |
baggr object |
summary |
logical; if TRUE returns summary statistics as explained below. |
transform |
a transformation to apply to the result, should be an R function;
(this is commonly used when calling |
interval |
uncertainty interval width (numeric between 0 and 1), if summarising |
If summary = TRUE, the returned object contains, for each study
or group, the following 5 values:
the posterior medians, the lower and upper bounds of the
uncertainty intervals using the central posterior credible interval
of width specified in the argument interval, the posterior mean, and
the posterior standard deviation.
Either a matrix with MCMC samples (if summary = FALSE) or a summary of these samples (if summary = TRUE).
fit1 <- baggr(schools) group_effects(fit1, summary = TRUE, interval = 0.5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.