Skip to content

hstats

1.2.2Package record

Interaction Statistics

1packages depend
4.2Kdownloads / year
84.2%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.2

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 to merge()) (#133).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.2
READMEYes · 2,380 wordsVignettesNoNEWSYes · 100% structured · mentions 1.2.2Citation fileNoWebsiteYes · pkgdown
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

4.2K
CRAN downloads in the past year
Rank #8,101 · ~11/day · ~348/mo
Daily download trend is not available in this view yet.
54630 days
1.1K90 days
4.2K1 year
Compare downloads with other packages →
Also on97 r2u6 autocran

Repository

36Stars
1Forks
0Open issues
0Open PRs
10Releases
458Commits
1Commit identities
interpretabilitymachine-learningrstatsstatisticsxaiinteractionrstat
License file reads as GPL-2.0 · 458 commits · Last activity 2026-01-01 · 0% stars, 30d
Responsiveness
How these are sampled
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

2026-07-14 · 342026-08-11 · 36
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-01-01 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
CRAN release process (3)
cran-comments.mdrevdep/CRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.2.0
Imports (3)
ggplot2statsutils
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (2)
Author, Maintainer since 0.1.0 (2023)
Contributor · added in 1.2.0
Releases (10)

Pick two releases to compare their code metrics.

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")
Mayer, M., & Biecek, P. (2025). hstats: Interaction Statistics (Version 1.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for hstats version 1.2.2 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy