Skip to content

hstats

1.2.2

Interaction Statistics

1packages depend
4.9Kdownloads / year
84.2%test coverage
13/13checks pass

Overview

About
Maintained by Michael MayerFirst published 2023-07-1810 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.4 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.69
84.2%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 2,380 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
94%
Return-value docs
100%
References docs
35%

Downloads

4.9K
CRAN downloads in the past year
Rank #10,447 · ~13/day · ~406/mo
Daily download trend is not available in this view yet.
31630 days
1K90 days
4.9K1 year
Compare downloads with other packages →
Also on115 r2u35 autocran

Repository

Repository
34Stars
1Forks
0Open issues
0Open PRs
10Releases
458Commits
1Contributors
interpretabilitymachine-learningrstatsstatisticsxaiinteractionrstat
License GPL-2.0 · 458 commits · Last activity 2026-01-01

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
CRAN release process (3)
cran-comments.mdrevdep/CRAN-SUBMISSION
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2.0
Imports (3)
ggplot2statsutils
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor · added in 1.2.0
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.2Latest
    2025-10-13 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.1
    2024-08-17 · diff ↗
  • 1.2.0
    2024-07-12 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.2
    2024-02-03 · diff ↗
  • 1.1.1
    2023-12-06 · diff ↗
  • 1.1.0
    2023-11-13 · diff ↗
  • 1.0.0
    2023-10-21 · diff ↗
  • 0.3.0
    2023-09-29 · diff ↗
  • 0.2.0
    2023-09-03 · diff ↗
  • 0.1.0
    2023-07-18
  • R
    R 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
Report a problem with this page →