Learn R Programming

hbal (version 1.2.8)

plot.hbal: Plotting Covariate Balance from an hbal Object

Description

This function plots the covariate difference between the control and treatment groups in standardized means before and after weighting and the distribution of balancing weights.

Usage

# S3 method for hbal
plot(x, type = 'balance', log = TRUE, base_size = 10,...)

Value

A matrix of ggplots of covariate balance by group or a histgram of balancing weights

Arguments

x

an object of class hbalobject as returned by hbal.

type

type of graph to plot, either 'balance' or 'weight'.

log

binary indicator for logrithmic scale when type = 'weight'.

base_size

base font size for lables when type = 'balance'.

...

Further arguments to be passed to plot.hbal().

Author

Yiqing Xu, Eddie Yang