View source: R/plot_common_support.R
plot_predicted_common_support | R Documentation |
Identify variables that predict lack of overlap
plot_predicted_common_support(
.model,
max_depth = 3,
rule = c("both", "sd", "chi")
)
.model |
a model produced by 'bartCause::bartc()' |
max_depth |
a number indicatin the max depth of the tree. Higher numbers are more prone to overfitting. |
rule |
one of c('both', 'sd', 'chi') denoting which rule to use to identify lack of support |
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',
commonSuprule = 'none'
)
plot_predicted_common_support (model_results)
plot_predicted_common_support (model_results, max_depth = 2, rule = 'chi')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.