Learn R Programming

PSAboot (version 1.3.6)

plot.PSAboot.balance: Plot method for balance.

Description

Plot method for balance.

Usage

# S3 method for PSAboot.balance
plot(
  x,
  unadjusted.color = "red",
  complete.color = "blue",
  pooled.color = "black",
  ...
)

Value

a ggplot2 expression.

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.

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)
plot(bm.usa.bal)
# }

Run the code above in your browser using DataLab