A graphic based upon cv.bal.psa
function in the PSAgraphics
package. This graphic plots the effect sizes for multiple covariates before and
after propensity score adjustement.
# S3 method for covariate.balance
plot(x, plot.strata = FALSE,
order = c("unadjusted", "adjusted"), strata.size = 3,
strata.legend.guide = "none", point.size = 3, point.alpha = 1,
line.color = "black", line.alpha = 0.2, legend.position = c(0.8, 0.2),
...)
results of covariate.balance
.
whether individual strata should be plotted.
how to order the y-axis. Possible values are adjusted, unadjusted, or NULL (don't reorder).
text size for strata if plotted.
guide for legend placement for strata.
size of the overall effect size points.
transparency level of the overall effect size points.
the color of the line connecting the overall effect size points.
transparency level of the line connecting the overall effect size points.
where to position the legend.
currently unused.
a ggplot2 with an attribute, effects
, that is the data frame
used to create the plot.