plot.PSAboot.balance: Plot method for balance.

View source: R/balance.plot.R

plot.PSAboot.balanceR 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 balance

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)


jbryer/PSAboot documentation built on Oct. 29, 2023, 10 a.m.