ipwplot: Plot Inverse Probability Weights

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/ipwplot.R

Description

For time varying weights: display boxplots within strata of follow-up time. For point treatment weights: display density plot.

Usage

1
2
ipwplot(weights, timevar = NULL, binwidth = NULL, logscale = TRUE,
        xlab = NULL, ylab = NULL, main = "", ref = TRUE, ...)

Arguments

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 timevar is not specified.

logscale

logical value. If TRUE, weights are plotted on a logarithmic scale.

xlab

label for the horizontal axis.

ylab

label for the vertical axis.

main

main title for the plot.

ref

logical value. If TRUE, a reference line is plotted at y=1.

...

additional arguments passed to boxplot (when timevar is specified) or plot (when timevar is not specified).

Value

A plot is displayed.

Author(s)

Willem M. van der Wal [email protected]

References

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. http://www.jstatsoft.org/v43/i13/.

See Also

basdat, haartdat, ipwplot, ipwpoint, ipwtm, timedat, tstartfun.

Examples

1
#see ?ipwpoint and ?ipwtm for examples

Example output



ipw documentation built on May 30, 2017, 4:47 a.m.