The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
plotBart is a diagnostic and plotting package for bartCause and thinkCausal.
library(plotBart)
data(lalonde)
<- c('age', 'educ', 'black', 'hisp', 'married', 'nodegr')
confounders
# fit BART model
<- bartCause::bartc(
model_results response = lalonde[['re78']],
treatment = lalonde[['treat']],
confounders = as.matrix(lalonde[, confounders]),
estimand = 'ate',
commonSup.rule = 'none',
verbose = FALSE,
keepTrees = TRUE
)
# plot common support
plot_common_support(.model = model_results)
# plot CATE and manipulate ggplot object
plot_CATE(
.model = model_results,
type = 'density',
ci_80 = TRUE,
ci_95 = TRUE,
.mean = TRUE
+
) labs(subtitle = 'My comments on the results') +
theme_classic()
plotBart is currently in development and is available to test by installing via:
# install.packages("remotes")
::install_github('priism-center/plotBart@*release') remotes
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.