plot_covariance: Plot the covariance

View source: R/plot_balance.R

plot_covarianceR Documentation

Plot the covariance

Description

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

Usage

plot_covariance(.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

Author(s)

George Perrett

Examples

data(lalonde)
plot_covariance(lalonde, 'treat', c('re75','re74' , 'age', 'educ')) + labs(title = 'My new title')

joemarlo/plotBart documentation built on May 31, 2024, 12:22 p.m.