plot.CIMTx_IPTW: Boxplot for weight distribution

View source: R/plot.CIMTx_IPTW.R

plot.CIMTx_IPTWR Documentation

Boxplot for weight distribution

Description

This function make the boxplot plot for the weights estimated by different IPTW methods. The inputs of the function are from the output of ce_estimate.R function when the methods are "IPTW-Multinomial", "IPTW-GBM", "IPTW-SL".

Usage

## S3 method for class 'CIMTx_IPTW'
plot(...)

Arguments

...

Objects from IPTW related methods

Value

A ggplot figure

References

Hadley Wickham (2019). stringr: Simple, Consistent Wrappers for Common String Operations. R package version 1.4.0. URL:https://CRAN.R-project.org/package=stringr

Hadley Wickham, Romain François, Lionel Henry and Kirill Müller (2021). dplyr: A Grammar of Data Manipulation. R package version 1.0.7. URL: https://CRAN.R-project.org/package=dplyr

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.

Claus O. Wilke (2020). cowplot: Streamlined Plot Theme and Plot Annotations for 'ggplot2'. R package version 1.1.1. URL:https://CRAN.R-project.org/package=cowplot

Examples

iptw_object_example <- list(weight = rnorm(1000, 1, 1), method = "IPTW-SL")
class(iptw_object_example) <- "CIMTx_IPTW"
plot(iptw_object_example)

CIMTx documentation built on June 24, 2022, 9:07 a.m.

Related to plot.CIMTx_IPTW in CIMTx...