View source: R/plot_residual.R
plot_residual_density | R Documentation |
Visualize balance of variables between treatment and control groups. Balance plot reflects balance in standardized units.
plot_residual_density(.model)
.model |
a model produced by 'bartCause::bartc()' |
ggplot object
George Perrett & Joseph Marlo
data(lalonde)
confounders <- c('age', 'educ', 'black', 'hisp', 'married', 'nodegr')
model_results <- bartCause::bartc(
response = lalonde[['re78']],
treatment = lalonde[['treat']],
confounders = as.matrix(lalonde[, confounders]),
estimand = 'ate',
commonSup.rule = 'none'
)
plot_residual_density(model_results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.