This R package is built upon CRAN R package 'BART' version 2.7 (https://github.com/cran/BART) and implements the existing BART-based variable selection approaches discussed in the paper: Luo, C. and Daniels, M. J. (2021). "Variable selection using Bayesian additive regression trees." arXiv preprint arXiv:2112.13998, https://doi.org/10.48550/arXiv.2112.13998.
Bayesian Additive Regression Trees (BART) is a nonparametric regression model which is flexible enough to capture the interactions between predictors and the nonlinear relationships with the response. BART can be used not only for estimation, but also for variable selection. Existing variable selection approaches for BART include:
- the permutation-based variable selection approach using BART variable inclusion proportions (VIP) as the variable importance, proposed in Bleich, Justin et al. (2014). "Variable selection for BART: an application to gene regulation." Ann. Appl. Stat. 8.3, pp 1750-1781;
- the median probability model from DART which is a variant of BART and proposed in Linero, A. R. (2018). "Bayesian regression trees for high-dimensional prediction and variable selection." J. Amer. Statist. Assoc. 113 626--636;
- the variable selection approach using ABC Bayesian forests proposed in Liu, Yi, Veronika Rockova, and Yuexi Wang (2021). "Variable selection with ABC Bayesian forests." J. R. Stat. Soc. Ser. B. Stat. Methodol. 83.3, pp. 453--481.
Luo and Daniels (2021) review these methods with an emphasis on the capability of identifying relevant predictors. Furthermore, out of the consideration of the existence of mixed-type predictors and the goal of allowing more relevant predictors into the model, Luo and Daniels (2021) propose three new methods for BART:
- the permutation-based variable selection approach using BART within-type VIP as the variable importance;
- the permutation-based variable selection approach using BART Metropolis importance (MI) as the variable importance;
- the backward selection with two filters.
See Luo and Daniels (2021) for more details.
The 'BartMixVs' R package provides data sampling functions to generate the simulation data used in Luo and Daniels (2021), inherits estimation functions from the 'BART' package and implements existing BART-based variable selection approaches (3 old + 3 new) previously mentioned.
- Data sampling functions include
friedman()
,checkerboard()
,mixone()
andmixtwo()
corresponding to Scenario C.C.1 (or B.C.1), Scenario C.C.2 (or B.C.2), Scenario C.M.1 (or B.M.1) and Scenario C.M.2 (or B.M.2) in Luo and Daniels (2021), respectively. - BART estimation and prediction functions inherited from the 'BART' package include
wbart()
(mc.wbart()
),pbart()
(mc.pbart()
) andpwbart()
(mc.pwbart()
). Note that while most of the original features of the 'BART' functions are kept, two modifications are made:- 'BartMixVs' provides two types of split probability for the tree prior in BART:
- One type is the split probability used in 'BART' and proposed in Chipman, H. A., George, E. I. and McCulloch, R. E. (2010). "BART: Bayesian additive regression trees." Ann. Appl. Stat. 4 266--298:
- The other type is the split probability proposed in Rockova V, Saha E (2019). “On theory for BART.” In The 22nd International Conference on Artificial Intelligence and Statistics (pp. 2839–2848). PMLR, which is proved to achieve the optimal posterior contraction:
- The second modification is that in addition to variable inclusion proportions, marginal posterior variable inclusion probabilities and posterior split probabilities, the estimation functions in 'BartMixVs' also provide two new variable importance measures: within-type variable importance proportions and Metropolis importance.
- 'BartMixVs' provides two types of split probability for the tree prior in BART:
- 'BartMixVs' provides four main functions for the existing BART-based variable selection approaches:
- The function
permute.vs()
(ormc.permute.vs()
with parallel computation) implements the permutation-based variable selection approach with three types of variable importance measures being considered: BART variable inclusion proportions (Bleich et al. (2014)), BART within-type variable inclusion proportions and BART Metropolis importance (Luo and Daniels (2021)). - The function
mc.backward.vs()
implements the backward selection proposed in Luo and Daniels (2021). - The function
medianInclusion.vs()
implements the DART variable selection approach proposed in Linero (2018). - The function
abc.vs()
(ormc.abc.vs()
with parallel computation) implements the ABC Bayesian forests variable selection approach proposed in Liu et al. (2021).
- The function