View source: R/plot.CIMTx_IPTW.R
plot.CIMTx_IPTW | R Documentation |
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".
## S3 method for class 'CIMTx_IPTW' plot(...)
... |
Objects from IPTW related methods |
A ggplot figure
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
iptw_object_example <- list(weight = rnorm(1000, 1, 1), method = "IPTW-SL") class(iptw_object_example) <- "CIMTx_IPTW" plot(iptw_object_example)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.