ipwplot | R Documentation |
For time varying weights: display boxplots within strata of follow-up time. For point treatment weights: display density plot.
ipwplot(weights, timevar = NULL, binwidth = NULL, logscale = TRUE,
xlab = NULL, ylab = NULL, main = "", ref = TRUE, ...)
weights |
numerical vector of inverse probability weights to plot. |
timevar |
numerical vector representing follow-up time. When specified, boxplots within strata of follow-up time are displayed. When left unspecified, a density plot is displayed. |
binwidth |
numerical value indicating the width of the intervals of follow-up time; for each interval a boxplot is made. Ignored when |
logscale |
logical value. If |
xlab |
label for the horizontal axis. |
ylab |
label for the vertical axis. |
main |
main title for the plot. |
ref |
logical value. If |
... |
additional arguments passed to |
A plot is displayed.
Willem M. van der Wal willem@vanderwalresearch.com, Ronald B. Geskus rgeskus@oucru.org
Van der Wal W.M. & Geskus R.B. (2011). ipw: An R Package for Inverse Probability Weighting. Journal of Statistical Software, 43(13), 1-23. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v043.i13")}.
basdat
, haartdat
, ipwplot
, ipwpoint
, ipwtm
, timedat
, tstartfun
.
#see ?ipwpoint and ?ipwtm for examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.