Package: bartXViz 1.0.11

Dong-eun Lee
bartXViz: Visualization of BART and BARP using SHAP
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.
Authors:
bartXViz_1.0.11.tar.gz
bartXViz_1.0.11.tar.gz(r-4.7-arm64)bartXViz_1.0.11.tar.gz(r-4.7-x86_64)bartXViz_1.0.11.tar.gz(r-4.6-arm64)bartXViz_1.0.11.tar.gz(r-4.6-x86_64)
bartXViz_1.0.11.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
bartXViz/json (API)
| # Install 'bartXViz' in R: |
| install.packages('bartXViz', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ldongeunl/bartxviz/issues
- cces_30_df - Survey Data on Public Opinion about Abortion Coverage in Insurance Plans
- census06 - Census-Based Population Proportions for Covariate Bins
- poststrat_30 - Post-Stratification Table of 2014-2018 American Community Survey
- svy - Survey Data on Support for Gay Marriage
Last updated from:138a883112. Checks:6 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 202 | ||
| linux-devel-x86_64 | OK | 188 | ||
| source / vignettes | OK | 231 | ||
| linux-release-arm64 | OK | 206 | ||
| linux-release-x86_64 | OK | 185 | ||
| wasm-release | OK | 157 |
Exports:barpsdecision_plotExplainExplain_statsone_hotwaterfall_plot
Dependencies:abindbackportsBARTbartMachinebartMachineJARsbase64encbitopsbootbroomcarcarDatacaToolscheckmateclicodetoolscolorspacecommonmarkcorrplotcowplotcpp11curlcvAUCdata.tabledbartsDerivdigestdoBydoRNGdplyrfarverforcatsforeachforecastFormulafracdiffgamgenericsggfittextggforcegggenesggplot2ggpubrggrepelggsciggsignifgluegplotsgridExtragridtextgtablegtoolsisobanditeratorsitertoolsjpegjsonliteKernSmoothlabelinglatticelifecyclelitedownlme4lmtestmagrittrmarkdownMASSMatrixMatrixModelsmatrixStatsmgcvmicrobenchmarkminqamissForestmodelrnlmenloptrnnetnnlsnumDerivpbkrtestpillarpkgconfigplyrpngpolyclippolynompurrrquantregR6randomForestrangerrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasreshape2rJavarlangrngtoolsROCRrstatixS7scalesshadesSparseMstringistringrSuperLearnersurvivalsystemfontstibbletidyrtidyselecttimeDatetweenrurcautf8vctrsviridisLitewithrxfunxml2zoo