Skip to content

bartXViz

1.0.11Package record

Visualization of BART and BARP using SHAP

0packages depend
4Kdownloads / year
–test coverage
12/13flavors OK

Overview

About

Complex machine learning models are often difficult to interpret. Shapley values serve as a powerful tool to understand and explain why a model makes a particular prediction. This package computes variable contributions using permutation-based Shapley values for Bayesian Additive Regression Trees (BART) and its extension with Post-Stratification (BARP). The permutation-based SHAP method proposed by Strumbel and Kononenko (2014) doi:10.1007/s10115-013-0679-x is grounded in data obtained via MCMC sampling. Similar to the BART model introduced by Chipman, George, and McCulloch (2010) doi:10.1214/09-AOAS285, this package leverages Bayesian posterior samples generated during model estimation, allowing variable contributions to be computed without requiring additional sampling. The BART model is designed to work with the following R packages: 'BART' doi:10.18637/jss.v097.i01, 'bartMachine' doi:10.18637/jss.v070.i04, and 'dbarts' https://CRAN.R-project.org/package=dbarts. For XGBoost and baseline adjustments, the approach by Lundberg et al. (2020) doi:10.1038/s42256-019-0138-9 is also considered. The BARP model proposed by Bisbee (2019) doi:10.1017/S0003055419000480 was implemented with reference to https://github.com/jbisbee1/BARP and is designed to work with modified functions based on that implementation. BARP extends post-stratification by computing variable contributions within each stratum defined by stratifying variables. The resulting Shapley values are visualized through both global and local explanation methods.

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORpackage dependenciesr-release-macos-x86_64
Package required but not available: ‘dbarts’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.

CRAN check page ↗

Slowest check: 4.6 min · r-devel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-05-02
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-04-06
  • ERROR13 OK, 1 ERROR2026-04-04
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.11
READMEYes · 234 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Description cites a JSS article
Help pages
18
Examples that run
11%1 run in a plain check · 8 never run
Exported functions with examples
83%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
28%

Downloads

4K
CRAN downloads in the past year
Rank #12,161 · ~11/day · ~337/mo
Daily download trend is not available in this view yet.
35230 days
91390 days
4K1 year
Compare downloads with other packages →
Also on363 r2u60 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-01-26
Responsiveness
not measured
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/ldongeunl/bartxviz on 2026-10-22.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing bartXViz adds 115 packages (62 with compiled code, 100 MB of source tarballs). Heaviest: stringi 11 MB, bartMachineJARs 8.6 MB, ggplot2 6.0 MB.

Depends (2)
R >= 3.5.0SuperLearner
LinkingTo (2)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 1.0.3 (2025)
Releases (6)

Pick two releases to compare their code metrics.

Package metadata

First published
2025-04-28
Total releases
6 / 1 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
181 KB / 3 files
Download size
233 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bartXViz")
Lee, D., & Lee, E. (2026). bartXViz: Visualization of BART and BARP using SHAP (Version 1.0.11) [Computer software]. https://doi.org/10.32614/CRAN.package.bartXViz

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bartXViz version 1.0.11 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy