plot.causal_estimates: Boxplot of percent ESS

View source: R/plot.R

plot.causal_estimatesR Documentation

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 class 'causal_estimates'
plot(x, ...)

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".

Value

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

Examples

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


WMAP documentation built on April 3, 2025, 8:55 p.m.