Learn R Programming

WMAP (version 1.1.0)

plot.causal_estimates: Boxplot of percent ESS

Description

Plot method for objects of class 'causal_estimates' to generate a boxplot of percent sample effective sample size (ESS) for a specific weighting method using bootstrap samples.

Usage

# S3 method for causal_estimates
plot(x, ...)

Value

A boxplot of percent sample ESS for a specific weighting method (FLEXOR, IC, or IGO)

Arguments

x

An object of class 'causal_estimates', the number of bootstrap samples B must be greater than 0.

...

Additional arguments including:

y_limit

The y-axis range. Default is c(0,50).

color

The boxplot color. Default is "red".

Examples

Run this code
data(demo)
set.seed(1)
output2 <- causal.estimate(S, Z, X, Y, B = 5, method = "IC", naturalGroupProp)
plot(output2)

Run the code above in your browser using DataLab