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

View source: R/balance.boxplot.R

boxplot.PSAboot.balanceR Documentation

Boxplot of the balance statistics for bootstrapped samples.

Description

Boxplot of the balance statistics for bootstrapped samples.

Usage

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

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

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)
boxplot(bm.usa.bal, nrow = 1)


PSAboot documentation built on Oct. 24, 2023, 1:06 a.m.