qshap: Fast Calculation of Feature Contributions in Boosting Trees

Computes feature-specific R-squared (R2) contributions for boosting tree models using a Shapley-value-based decomposition of the total R-squared in polynomial time. Supports models fitted with 'XGBoost' and 'LightGBM', and provides efficient parallel implementations suitable for large-scale problems. Multiple visualization tools are included for interpreting and communicating feature contributions. The methodology is described in Jiang, Zhang, and Zhang (2025) <doi:10.48550/arXiv.2407.03515>.

Version: 1.0
Imports: Rcpp (≥ 1.0.14), xgboost (≥ 3.1.3.1), parallel, lightgbm, viridisLite, ggplot2, jsonlite, methods, progress
LinkingTo: Rcpp, RcppEigen
Suggests: shiny
Published: 2026-03-16
DOI: 10.32614/CRAN.package.qshap (may not be active yet)
Author: Steven He [aut], Zhongli Jiang [aut, cre], Dabao Zhang [aut]
Maintainer: Zhongli Jiang <zhongli.jiang.stats at gmail.com>
BugReports: https://github.com/catstats/Q-SHAP_R/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/catstats/Q-SHAP_R
NeedsCompilation: yes
CRAN checks: qshap results

Documentation:

Reference manual: qshap.html , qshap.pdf

Downloads:

Package source: qshap_1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=qshap to link to this page.