Learn R Programming

plotBart (version 0.1.7)

plot_balance: Plot the balance

Description

Visualize balance of variables between treatment and control groups. Balance plot reflects balance in standardized units.

Usage

plot_balance(.data, treatment, confounders)

Arguments

.data

dataframe

treatment

the column denoted treatment. Must be binary.

confounders

character list of column names denoting the X columns of interest

Value

ggplot object

Examples

Run this code
# NOT RUN {
data(lalonde)
plot_balance(lalonde, 'treat', c('re78', 'age', 'educ')) + labs(title = 'My new title')
# }

Run the code above in your browser using DataLab