R package for a sparse version of VCBART. Uses Bayesian Additive Regression Trees to estimate covariate effect functions in the linear varying coefficient model, with global–local shrinkage.
xcode-select --install)gcc g++ make)Rcpp, RcppArmadillo (C++ interface & linear algebra)From a local checkout:
# In the package root directory:
R CMD build .
R CMD INSTALL sparseVCBART_*.tar.gz
All scripts live in the codes/ directory. A shared helper file, codes/common_sim.R, contains common simulation settings and utility functions used by multiple scripts. Wrappers for competitor methods are in codes/competitor_wrappers.R.
codes/sim1_VCBART_variants.R
codes/sim1_others.R
codes/sim2_VCBART_variants.R
codes/sim2_others.R
The scripts for the applied data analyses are provided below:
Semi-synthetic Political Science Example: codes/PolScidata.R
Health and Retirement Study (HRS) Analysis: codes/hrs-analysis.R
Yeast Transcription Factor (TF) Example: codes/yeast_analysis.R