The most general treatment_effect
displays
both hypermean and hyperSD (as a list of length 2),
whereas hypermean
and hypersd
can be used as shorthands.
treatment_effect(
bg,
summary = FALSE,
transform = NULL,
interval = 0.95,
message = TRUE
)hypermean(
bg,
transform = NULL,
interval = 0.95,
message = FALSE,
summary = TRUE
)
hypersd(bg, transform = NULL, interval = 0.95, message = FALSE, summary = TRUE)
a baggr model
logical; if TRUE returns summary statistics as explained below.
a transformation to apply to the result, should be an R function;
(this is commonly used when calling treatment_effect
from other
plotting or printing functions)
uncertainty interval width (numeric between 0 and 1), if summarising
logical; use to disable messages prompted by using with no pooling models
treatment_effect()
: A list with 2 vectors (corresponding to MCMC samples)
tau
(mean effect) and sigma_tau
(SD). If summary=TRUE
,
both vectors are summarised as mean and lower/upper bounds according to
interval
hypermean()
: The hypermean of a baggr
model, shorthand for treatment_effect(x, s=T)[[1]]
hypersd()
: The hyper-SD of a baggr
model, shorthand for treatment_effect(x, s=T)[[2]]