Learn R Programming

PSAboot (version 1.3.6)

boxplot.PSAboot.balance: Boxplot of the balance statistics for bootstrapped samples.

Description

Boxplot of the balance statistics for bootstrapped samples.

Usage

# S3 method for PSAboot.balance
boxplot(
  x,
  unadjusted.color = "red",
  pooled.color = "blue",
  point.size = 3,
  point.alpha = 0.5,
  ...
)

Value

a ggplot2 expression.

Arguments

x

results of balance

unadjusted.color

the color used for the unadjusted effect size.

pooled.color

the color used for the mean bootstrap effect size.

point.size

the size of the points.

point.alpha

the transparency level for the points.

...

other parameters passed to facet_wrap

Examples

Run this code
# \donttest{
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)
boxplot(bm.usa.bal, nrow = 1)
# }

Run the code above in your browser using DataLab