Historical, Relational, and Tail Anomaly-Detection Algorithms
Overview
The presence of outliers in a dataset can substantially bias the results of statistical analyses. To correct for outliers, micro edits are manually performed on all records. A set of constraints and decision rules is typically used to aid the editing process. However, straightforward decision rules might overlook anomalies arising from disruption of linear relationships. Computationally efficient methods are provided to identify historical, tail, and relational anomalies at the data-entry level (Sartore et al., 2024; doi:10.6339/24-JDS1136). A score statistic is developed for each anomaly type, using a distribution-free approach motivated by the Bienaymé-Chebyshev's inequality, and fuzzy logic is used to detect cellwise outliers resulting from different types of anomalies. Each data entry is individually scored and individual scores are combined into a final score to determine anomalous entries. In contrast to fuzzy logic, Bayesian bootstrap and a Bayesian test based on empirical likelihoods are also provided as studied by Sartore et al. (2024; doi:10.3390/stats7040073). These algorithms allow for a more nuanced approach to outlier detection, as it can identify outliers at data-entry level which are not obviously distinct from the rest of the data. --- This research was supported in part by the U.S. Department of Agriculture, National Agriculture Statistics Service. The findings and conclusions in this publication are those of the authors and should not be construed to represent any official USDA, or US Government determination or policy.
Install
Health
- OK13 OKNow
- OK6 OK2026-10-06
- WARNING12 OK, 1 WARNING2026-08-21
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 13includes a package overview page
- Examples that run
- 92%12 run in a plain check · 1 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
- 15%
Downloads
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- unarchivedReturned to CRAN2026-10-05
- 26.9.19Latest2026-10-05 · current release · diff ↗ ·
removed 1 export
pattern:^[[:alpha:]]+added 10 exports
bayesHRT, bayeswise, bootHRT, cellwise, class_check, dif, fuzzyHRT, gif, pif, setCores - archivedRemoved from CRAN2026-09-11issues were not corrected in time
- RR 4.6.0 released · 2026-04-24
- 25.11.222025-11-25 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 25.2.252025-02-26 · diff ↗
- 25.2.182025-02-20
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-02-20
- Total releases
- 4 / 1 yrs
- License
- AGPL-3 OSI
- Minimum R
- ≥ 4.5.0
- Bundled data
- 58 KB / 1 file
- Download size
- 520 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("HRTnomaly")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.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.