plot.PSAboot.balance {PSAboot} | R Documentation |
Plot method for balance.
Description
Plot method for balance.
Usage
## S3 method for class 'PSAboot.balance'
plot(
x,
unadjusted.color = "red",
complete.color = "blue",
pooled.color = "black",
...
)
Arguments
x |
results from |
unadjusted.color |
color of the vertical line representing the mean unadjusted effect size for all covariates. |
complete.color |
color of the vertical line representing the mean adjusted effect size for all covariates using the complete dataset. |
pooled.color |
color of the vertical line representing the mean adjusted effect size for all covariates across all bootstrapped samples. |
... |
currently unused. |
Value
a ggplot2 expression.
Examples
library(PSAboot)
data(pisa.psa.cols)
data(pisausa)
bm.usa <- PSAboot(Tr = as.integer(pisausa$PUBPRIV) - 1,
Y = pisausa$Math,
X = pisausa[,pisa.psa.cols],
control.ratio = 5, M = 100, seed = 2112)
bm.usa.bal <- balance(bm.usa)
plot(bm.usa.bal)
[Package PSAboot version 1.3.8 Index]