Learn R Programming

whatifbandit (version 0.3.0)

plot_estimates: Plot AIPW Estimates

Description

Plot summary of AIPW estimates and variances for each treatment arm.

Usage

plot_estimates(x, level = 0.95, ...)

Value

Minimal ggplot object, that can be customized and added to with + (to change scales, labels, legend, theme, etc.).

Arguments

x

A mab class object created by single_mab_simulation()

level

Numeric value of length 1; indicates confidence interval Width (i.e 0.90, 0.95, 0.99). Defaults to 0.95.

...

Arguments to pass to ggplot2::geom_* function (e.g. color, linewidth, alpha, bins etc.).