balancePlotTwang: Draw balance Plot

View source: R/balancePlotTwang.R

balancePlotTwangR Documentation

Draw balance Plot

Description

Draw balance Plot

Usage

balancePlotTwang(
  out,
  show.label = FALSE,
  show.legend = FALSE,
  rowByGroup = TRUE
)

Arguments

out

An object of class mnps

show.label

logical Whether or not show label

show.legend

logical Whether or not show legend

rowByGroup

logical If true, draw row by group

Examples

library(twang)
data(AOD)
out=mnps(treat~illact+crimjust+subprob+subdep+white,data=AOD,n.trees=3000,verbose=FALSE)
balancePlotTwang(out)
out=mnps(treat~illact+crimjust+subprob+subdep+white,data=AOD,n.trees=3000,verbose=FALSE,
stop.method=c("es.mean","ks.max"))
balancePlotTwang(out)

cardiomoon/webrPSM documentation built on Feb. 2, 2024, 3:55 a.m.