powered by
Visualize balance of variables between treatment and control groups. Balance plot reflects balance in standardized units.
plot_balance(.data, treatment, confounders)
dataframe
the column denoted treatment. Must be binary.
character list of column names denoting the X columns of interest
ggplot object
# 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