Fairness Evaluation Metrics with Confidence Intervals for Binary Protected Attributes
Overview
A collection of functions for computing fairness metrics for machine learning and statistical models, including confidence intervals for each metric. The package supports the evaluation of group-level fairness criterion commonly used in fairness research, particularly in healthcare for binary protected attributes. It is based on the overview of fairness in machine learning written by Gao et al (2025) doi:10.1002/sim.70234.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 15
- Examples that run
- 0%13 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 14
- Median days to close, 50 most recently updated closed PRs
- 0
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/jianhuig/fairmetrics 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-09-28 · The repository has a site deploy workflow
Show all practicesHide 1 practice
Dependencies
Installing fairmetrics adds no packages beyond those that come with R.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.8Latest
- 1.0.72025-10-06 · diff ↗
- 1.0.62025-09-11 · diff ↗
- 1.0.5
- 1.0.42025-07-23 · diff ↗
- 1.0.32025-06-12 · diff ↗
- 1.0.2
- 1.0.12025-06-01 · diff ↗ ·
removed 1 export
eval_pred_parityadded 2 exports
eval_neg_pred_parity, eval_pos_pred_parity - 1.0.02025-05-19
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-05-19
- Total releases
- 9 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 155 KB / 2 files
- Download size
- 195 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("fairmetrics")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.08497, 10.1002/sim.70234.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.