treatment_effect | R Documentation |
Average treatment effect in a baggr model
treatment_effect(
bg,
summary = FALSE,
transform = NULL,
interval = 0.95,
message = TRUE
)
bg |
a baggr model |
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 |
message |
logical; use to disable messages prompted by using with no pooling models |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.