hstats
1.2.2Interaction 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.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- References docs
- 35%
Downloads
Repository
Repository practices
4 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/modeloriented/hstats on 2026-07-19.
Dependencies
Code & Tests
People & History
10 releases. Pick two to compare their code metrics. R releases are shown for context.
- 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.02023-09-03 · diff ↗
- 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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet