plot.causal_estimates: Plot method for objects of class 'causal_estimates'

View source: R/plot.R

plot.causal_estimatesR Documentation

Plot method for objects of class 'causal_estimates'

Description

Creates a boxplot showing the distribution of effective sample size (ESS) across bootstrap samples for the specified weighting method.

Usage

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

Arguments

x

An object of class 'causal_estimates' returned by causal.estimate().

...

Additional arguments:

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

## Not run: 
data(demo)
result <- causal.estimate(S, Z, X, Y, B = 5, method = "FLEXOR", naturalGroupProp)
plot(result)
plot(result, y_limit = c(0, 100), color = "steelblue")

## End(Not run)


WMAP documentation built on Oct. 6, 2026, 1:07 a.m.