mev: Modelling Extreme values

An R package for the analysis of univariate, multivariate and functional extreme values. The package includes routine functions for univariate analyses multiple threshold selection diagnostics, optimization, bias-correction and tangent exponential model approximations, non-parametric spectral measure estimation using empirical likelihood methods, etc. Multivariate functionalities revolve around simulation algorithms for multivariate models, empirical likelihood, empirical dependence measures. Likelihood functions for elliptical processes and user-provided methodologies.

To install from Github, use

# remotes::install_github("lbelzile/mev")
install.packages("mev", repos = c('https://lbelzile.r-universe.dev', 'https://cloud.r-project.org'))

after installing remotes.

Functionalities

The functionalities of the development version of the package (GIthub) are sorted below by topic.

Univariate

The package focuses on likelihood based inference for parametric models.

Log likelihood, score and information matrices for the following univariate models:

Fitting procedures and higher order asymptotic inference for univariate extremes

Two additional models and utilities for penultimate approximations

Nonparametric estimators of shape and second order regular variation

The routine fit.shape, or alternatively one of subroutines for real or positive (*) shape parameters.

Note that both of the trimmed and truncated Hill estimators are not vectorized.

Second-order regular variation estimators (via fit.rho)

Threshold selection diagnostics

Functions for automatic selection of threshold with the peaks over threshold method

Some semiparametric methods

Threshold stability plots

Multivariate

Some functionalities (incomplete) for multivariate models. There is currently no function to optimize multivariate threshold models, but likelihoods are provided for logistic, Brown--Resnick, Huesler--Reiss and extremal Student models

Two tests, one for max-stability and the other for asymptotic independence

Nonparametric

Estimation of the angular distribution using empirical estimation or empirical likelihood, with or without smoothing

Simulation

Sampling algorithms for parametric models, multivariate and spatial extreme values, angular distribution and (generalized) risk-Pareto processes using accept-reject or composition sampling (approximate).

Extremal dependence measures

Measures of tail dependence $\theta$, $\eta$, $\chi$ and $\varphi$, with common functionalities, returning data frames with coefficient estimates and confidence intervals

Older functions that return similar summaries

Datasets

Various datasets

Spatial

Some functionalities for fitting spatial data

Miscellaneous

Functions used internally that could be of more general use.