Fair Data Adaptation with Quantile Preservation
Overview
An implementation of the fair data adaptation with quantile preservation described in Plecko & Meinshausen (JMLR 2020, 21(242), 1-44). The adaptation procedure uses the specified causal graph to pre-process the given training and testing data in such a way to remove the bias caused by the protected attribute. The procedure uses tree ensembles for quantile regression. Instructions for using the methods are further elaborated in the corresponding JSS manuscript, see doi:10.18637/jss.v110.i04.
Non-breaking changes:
- vignette updates follows the release of the article in Journal of Statistical Software
From NEWS.md in the release
Install
Health
ERRORre-building of vignette outputsr-oldrel-macos-arm64
Error(s) in re-building vignettes: --- re-building ‘jss.Rmd’ using rmarkdown This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 bbm10 mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. kpathsea: Appending font creation commands to missfont.log. This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 bbm10 mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. kpathsea: Appending font creation commands to missfont.log. This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 bbm10 mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. kpathsea: Appending font creation commands to missfont.log. Error: processing vignette 'jss.Rmd' failed with diagnostics: LaTeX failed to compile /Volumes/Builds/packages/big-sur-arm64/results/4.5/fairadapt.Rcheck/vign_test/fairadapt/vignettes/jss.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. --- failed re-building ‘jss.Rmd’ SUMMARY: processing the following file failed: ‘jss.Rmd’ Error: Vignette re-building failed. Execution halted
- ERROR12 OK, 1 ERRORNow
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 19 (1 internal)includes a package overview page
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 56%
- Documented parameters
- 90%
- Return-value docs
- 89%
- Help pages citing references
- 11%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 77
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/dplecko/fairadapt on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2022-07-01 · The repository has a site deploy workflow
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.0.0Latest
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2023-10-09
- 0.2.72023-10-09 · diff ↗
- archivedRemoved from CRAN2023-09-19issues were not corrected despite reminders
- 0.2.62023-08-18 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.52023-03-23 · diff ↗
- 0.2.42022-07-01 · diff ↗
- 0.2.32022-06-22 · diff ↗
- 0.2.2
- RR 4.2.0 released · 2022-04-22
- 0.2.12021-10-19 · diff ↗
- 0.2.02021-07-28 · diff ↗ ·
added 8 exports
adaptedData, computeQuants, fairTwins, graphModel, linearQuants, mcqrnnQuants, rangerQuants, visualizeGraph
Show 4 earlier eventsHide 4 earlier events
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.1.02019-11-28
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-11-28
- Total releases
- 10 / 7 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 1.3 MB / 3 files
- Download size
- 1.9 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("fairadapt")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v110.i04.
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.