Functions for Rare Events Analysis

Functions for detecting and analyzing rare events in data. Implements isolation forest (Liu et al., 2008, ) 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) . Provides goodness-of-fit tests for quantile regression (Haupt et al., 2011, ), partial dependence with quantile random forests, MCC (Matthews Correlation Coefficient) computation and testing, knee-point detection via the Kneedle algorithm (Satopaa et al., 2011, ), and spatial point matching.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rarefun")

0.1.0 by Vyacheslav Lyubchich, 5 months ago


https://github.com/vlyubchich/rarefun


Report a bug at https://github.com/vlyubchich/rarefun/issues


Browse source code at https://github.com/cran/rarefun


Authors: Vyacheslav Lyubchich [aut, cre] (ORCID: , Geneviève Nesslage [aut] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports RANN, boot, dbscan, geosphere, isotree, Rdpack, parallel, pdp, stats

Suggests testthat, dplyr, ggplot2, heatwaveR, patchwork, quantmod, quantreg, ranger, viridis


See at CRAN