Fit Bayesian Additive Regression Trees (BART) models to select confounders and estimate treatment effect.
This package is described in The R Journal:
Yoo, Y. and Kim, C. (2025). bartcs: An R Package for Bayesian Nonparametric Adjustment for Confounding. The R Journal, 17(2). https://journal.r-project.org/articles/RJ-2025-019/
You can install from CRAN with:
install.packages("bartcs")
Or you can install the development version from GitHub with:
# remotes::install_github("yooyh/bartcs")
install.packages("bartcs", repos = c('https://yooyh.r-universe.dev', 'https://cloud.r-project.org'))
bartcs supports multi-threading by OpenMP. If you
then install package from source with:
# build from source
install.packages("bartcs", type = "source")
# count OpemMP thread
bartcs::count_omp_thread() # this should be greater than 1