Interaction Statistics
Overview
Fast, model-agnostic implementation of different H-statistics introduced by Jerome H. Friedman and Bogdan E. Popescu (2008) doi:10.1214/07-AOAS148. These statistics quantify interaction strength per feature, feature pair, and feature triple. The package supports multi-output predictions and can account for case weights. In addition, several variants of the original statistics are provided. The shape of the interactions can be explored through partial dependence plots or individual conditional expectation plots. 'DALEX' explainers, meta learners ('mlr3', 'tidymodels', 'caret') and most other models work out-of-the-box.
Bug fixes
- Compatibility warning with ggplot v4.0 (#137).
Documentation
- Changed Tidymodels example to probabilistic multiclass, see discussion in #129.
Internals
- Use
"\r"instead of"_:_"as separator to paste values in multi-column grids (similar tomerge()) (#133).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 26
- Examples that run
- 100%16 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 35%
Downloads
Repository
- PRs merged (all time)
- 98%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/modeloriented/hstats on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-01 · The repository has a site deploy workflow
Dependencies
Installing hstats adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.2Latest
- RR 4.5.0 released · 2025-04-11
- 1.2.12024-08-17 · diff ↗
- 1.2.02024-07-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.1.22024-02-03 · diff ↗
- 1.1.12023-12-06 · diff ↗
- 1.1.02023-11-13 · diff ↗
- 1.0.02023-10-21 · diff ↗
- 0.3.02023-09-29 · diff ↗
- 0.2.0
- 0.1.02023-07-18
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-07-18
- Total releases
- 10 / 3 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.2.0
- Download size
- 251 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("hstats")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.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.