Learn R Programming

bartcs

Fit Bayesian Additive Regression Trees (BART) models to select confounders and estimate treatment effect.

Installation

You can install from CRAN with:

install.packages("bartcs")

Or you can install the development version from GitHub with:

remotes::install_github("yooyh/bartcs")

For Mac Users Only

bartcs supports multi-threading by OpenMP. If you

  • Have OpenMP installed
  • And want to use OpenMP multi-threading

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

Copy Link

Version

Install

install.packages('bartcs')

Monthly Downloads

329

Version

1.3.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Yeonghoon Yoo

Last Published

April 8th, 2025

Functions in bartcs (1.3.0)

synthetic_data

Synthetic dataset for simulation
count_omp_thread

Count the number of OpenMP threads for parallel computation
plot.bartcs

Draw plot for bartcs object
summary.bartcs

Summary for bartcs object
ihdp

Infant Health and Development Program Data
bart

Fit BART models to select confounders and estimate treatment effect
bartcs-package

bartcs: Bayesian Additive Regression Trees for Confounder Selection