rarefun: Functions for Rare Events Analysis

Functions for detecting and analyzing rare events in data. Implements isolation forest (Liu et al., 2008, <doi:10.1109/ICDM.2008.17>) and clustering for anomaly detection in time series residuals. Decomposes time series using LOESS (Locally Estimated Scatterplot Smoothing) or STL (Seasonal-Trend decomposition using LOESS). Detects marine heatwaves and cold spells following Hobday et al. (2016) <doi:10.1016/j.pocean.2015.12.014>. Provides goodness-of-fit tests for quantile regression (Haupt et al., 2011, <doi:10.1080/02664763.2011.573542>), partial dependence with quantile random forests, MCC (Matthews Correlation Coefficient) computation and testing, knee-point detection via the Kneedle algorithm (Satopaa et al., 2011, <doi:10.1109/ICDCSW.2011.20>), and spatial point matching.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: RANN, boot, dbscan, geosphere, isotree, Rdpack, parallel, pdp, stats
Suggests: testthat (≥ 3.0.0), dplyr, ggplot2, heatwaveR, patchwork, quantmod, quantreg, ranger, viridis
Published: 2026-06-02
DOI: 10.32614/CRAN.package.rarefun (may not be active yet)
Author: Vyacheslav Lyubchich ORCID iD [aut, cre], Geneviève Nesslage ORCID iD [aut]
Maintainer: Vyacheslav Lyubchich <lyubchich at umces.edu>
BugReports: https://github.com/vlyubchich/rarefun/issues
License: MIT + file LICENSE
Copyright: see file COPYRIGHTS
URL: https://github.com/vlyubchich/rarefun
NeedsCompilation: no
Materials: NEWS
CRAN checks: rarefun results

Documentation:

Reference manual: rarefun.html , rarefun.pdf

Downloads:

Package source: rarefun_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): rarefun_0.1.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): rarefun_0.1.0.tgz, r-oldrel (x86_64): rarefun_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rarefun to link to this page.