Learn R Programming

twang (version 0.6-1)

diag.plot: Create diagnostic plots

Description

Creates diagnostic plots of propensity scores including, a side-by-side boxplot of propensity scores, a histogram of propensity score weights, QQ plots of KS and t-statistic p-values, and a ``spaghetti" plot of absolute effect sizes

Usage

diag.plot(til, treat, p.s, w.ctrl, desc.unw, desc.w)

## S3 method for class 'ps':
plot(x, label = "", ask = FALSE, ...)
                  
## S3 method for class 'dxwts':
plot(x, label = "", ...)

Arguments

til
a title for the plots
treat
a vector of 0/1 treatment indicators
p.s
a vector of propensity scores (optional)
w.ctrl
weights for the control subjects
desc.unw
a list object containing the balance assessment without weights, usually the result of a call to desc.wts or the desc component
desc.w
a list object containing the weighted balance assessment
x
a ps object, usually one returned from ps
label
a character string for titling the plots
ask
logical. If TRUE then the graphics window waits for a response from the user before showing the next graph
...
other arguments passed to the plot function

Value

  • No returned objects

Details

plot.ps and plot.dxwts are wrappers for diag.plot

See Also

ps