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

treatment_effect

Average treatment effect in a baggr model


Description

Average treatment effect in a baggr model

Usage

treatment_effect(bg, summary = FALSE, transform = NULL, interval = 0.95)

Arguments

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 treatment_effect from other plotting or printing functions)

interval

uncertainty interval width (numeric between 0 and 1), if summarising

Value

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


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.