Learn R Programming

whatifbandit (version 0.3.0)

plot_mult_estimates: Plots AIPW Confidence Intervals

Description

Plots the uncertainty AIPW estimates for each arm using the specified variance from the repeated trials for plot.multiple.mab().

Usage

plot_mult_estimates(x, cdf, level, ...)

Value

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

Arguments

x

A multiple.mab class object created by multiple_mab_simulation().

cdf

String; specifies the type of CDF to use when analyzing the estimates. valid CDFs are the 'empirical' CDF, the 'normal' CDF. Used when type = estimate. The 'normal' CDF uses the fact that the AIPW estimates are asymptotically normal, while the empirical CDF (eCDF) estimates the CDF from the sample of AIPW estimates.

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.). In the case of type = "hist", additional arguments must be passed in to distinct lists, one named geom which are passed to ggplot2::geom_* and one named facet which are passed to ggplot2::facet_grid.