The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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
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: qshap_1.0.zip, r-release: qshap_1.0.zip, r-oldrel: qshap_1.0.zip
macOS binaries: r-release (arm64): qshap_1.0.tgz, r-oldrel (arm64): qshap_1.0.tgz, r-release (x86_64): qshap_1.0.tgz, r-oldrel (x86_64): qshap_1.0.tgz

Linking:

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

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.