plot_covariance | R Documentation |
Visualize balance of the covariance of variables between treatment and control groups. Balance plot reflects balance in standardized units.
plot_covariance(.data, treatment, confounders)
.data |
dataframe |
treatment |
the column denoted treatment. Must be binary. |
confounders |
character list of column names denoting the X columns of interest |
ggplot object
George Perrett
data(lalonde)
plot_covariance(lalonde, 'treat', c('re75','re74' , 'age', 'educ')) + labs(title = 'My new title')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.