Learn R Programming

mev (version 2.1)

Modelling of Extreme Values

Description

Various tools for the analysis of univariate, multivariate and functional extremes. Exact simulation from max-stable processes (Dombry, Engelke and Oesting, 2016, , R-Pareto processes for various parametric models, including Brown-Resnick (Wadsworth and Tawn, 2014, ) and Extremal Student (Thibaud and Opitz, 2015, ). Threshold selection methods, including Wadsworth (2016) , and Northrop and Coleman (2014) . Multivariate extreme diagnostics. Estimation and likelihoods for univariate extremes, e.g., Coles (2001) .

Copy Link

Version

Install

install.packages('mev')

Monthly Downloads

6,743

Version

2.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Leo Belzile

Last Published

November 11th, 2025

Functions in mev (2.1)

Stein_weights

Stein's vector of weights
abisko

Abisko rainfall
angmeasdir

Dirichlet mixture smoothing of the angular measure
PickandsXU

Extreme U-statistic Pickands estimator
W.diag

Wadsworth's univariate and bivariate exponential threshold diagnostics
angextrapo

Bivariate angular dependence function for extrapolation based on rays
Lambda2cov

Transform variogram matrix to covariance of conditional random field
adf

Estimation of the bivariate angular dependence function
angmeas

Rank-based transformation to angular measure
NC.diag

Score and likelihood ratio tests fit of equality of shape over multiple thresholds
dgeoaniso

Distance matrix with geometric anisotropy
distg

Distance matrix with geometric anisotropy
confint.eprof

Confidence intervals for profile likelihood objects
cvselect

Threshold selection via coefficient of variation
clikmgp

Censored likelihood for multivariate peaks over threshold models
.Joint_MLE_Expl

Joint maximum likelihood estimation for exponential model
.gev.postpred

Posterior predictive distribution and density for the GEV distribution
.fit.gpd.rob

Robust threshold selection of Dupuis
.fit.gpd.grimshaw

GP fitting function of Grimshaw (1993)
automrl

Automated mean residual life plots
.mvasym.check

Internal function
.rPexstud

Generate from extremal Student-t \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function
.rPBrownResnick

Generate from Brown-Resnick process \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function
.rPHuslerReiss

Generate from extremal Husler-Reiss distribution \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function
.rPdir

Generate from extremal Dirichlet \(Y \sim {P_x}\), where \(P_{x}\) is the probability of extremal functions from the Dirichlet model of Coles and Tawn.
.rPSmith

Generate from Smith model (moving maxima) \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function
.rPdirmix

Generate from extremal Dirichlet \(Y \sim {P_x}\), where \(P_{x}\) is the probability of extremal functions from a Dirichlet mixture
.is.CNSD

Is the matrix conditionally negative semi-definite? Function adapted from 'is.CNSD' in the CEGO package, v 2.1.0
.gpd_2D_fit

Maximum likelihood method for the generalized Pareto Model
.rPlog

Generate from logistic \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function scaled by a Frechet variate
.rPbilog

Generate from bilogistic \(Y \sim {P_x}\), where \(P_{x}\) is the probability of extremal functions
.rbrspec

Generates from \(Q_i\), the spectral measure of the Brown-Resnick model
.rdirmixspec

Generates from \(Q_i\), the spectral measure of the Dirichlet mixture model
.rPneglog

Generate from negative logistic \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function scaled by a Frechet variate
.rbilogspec

Generates from \(Q_i\), the spectral measure of the bilogistic model
.rdirspec

Generates from \(Q_i\), the spectral measure of the extremal Dirichlet model
.rPsite

Samples from exceedances at site (scaled extremal function definition)
.rhrspec

Generates from \(Q_i\), the spectral measure of the Husler-Reiss model
.rpairbetaspec

Generates from \(Q_i\), the spectral measure of the pairwise Beta model
.rmevA2

Multivariate extreme value distribution sampling algorithm via extremal functions
.rmevasy

Random samples from asymmetric logistic distribution
.rmevA1

Multivariate extreme value distribution sampling algorithm via angular measure
.rpairexpspec

Generates from \(Q_i\), the spectral measure of the pairwise exponential model
.rsmithspec

Generates from \(Q_i\), the spectral measure of the Smith model (moving maxima)
.rwdirbsspec

Generates from \(Q_i\), the spectral measure of the weighted Dirichlet model
.rlogspec

Generates from \(Q_i\), the spectral measure of the logistic model
.rwexpbsspec

Generates from \(Q_i\), the spectral measure of the weighted exponential model
egp.pll

Profile log likelihood for extended generalized Pareto models
.rmevspec_cpp

Random sampling from spectral distribution on l1 sphere
egpdist

Extended generalized Pareto distribution
emplik

Self-concordant empirical likelihood for a vector mean
egp

Extended generalised Pareto families
.rexstudspec

Generates from \(Q_i\), the spectral measure of the extremal Student model
.wecdf

Weighted empirical distribution function
.rneglogspec

Generates from \(Q_i\), the spectral measure of the negative logistic model
egp-function

Extended generalised Pareto log likelihood
.rmnorm_arma

Multivariate Normal distribution sampler (Rcpp version), derived using the eigendecomposition of the covariance matrix Sigma. The function utilizes the arma random normal generator
egp2.fit

Fit an extended generalized Pareto distribution of Naveau et al.
egp.fitrange

Deprecated function for parameter stability plots
egp.fit

Fit of extended GP models and parameter stability plots
extremo

Pairwise extremogram for max-risk functional
eskrain

Eskdalemuir Observatory Daily Rainfall
extgp

Extended generalised Pareto families of Naveau et al. (2016)
extcoef

Estimators of the extremal coefficient
fit.egp

Parameter stability plot and maximum likelihood routine for extended GP models
fit.extgp

Fit an extended generalized Pareto distribution of Naveau et al.
expme

Exponent measure for multivariate generalized Pareto distributions
ext.index

Extremal index estimators
fit.rho

Estimator of the second order tail index parameter
fit.pp

Maximum likelihood estimation of the point process of extremes
fit.gev

Maximum likelihood estimation for the generalized extreme value distribution
fit.shape

Shape parameter estimates
fit.rlarg

Maximum likelihood estimates of point process for the r-largest observations
gev.Nyr

N-year return levels, median and mean estimate
pextgp.G

Extended GP functions
geomagnetic

Magnetic storms
gev.pll

Profile log-likelihood for the generalized extreme value distribution
extgp.G

Carrier distribution for the extended GP distributions of Naveau et al.
gev

Generalized extreme value distribution
fit.gpd

Maximum likelihood estimation for the generalized Pareto distribution
frwind

French wind data
gev.retlev

Return level for the generalized extreme value distribution
gev.Fscore

Firth's modified score equation for the generalized extreme value distribution
fit.wgpd

Maximum likelihood estimation for weighted generalized Pareto distribution
gev.mle

Generalized extreme value maximum likelihood estimates for various quantities of interest
gev.bias

Cox-Snell first order bias for the GEV distribution
gev.ll

Log likelihood for the generalized extreme value distribution
gevN.ll

Negative log likelihood of the generalized extreme value distribution (quantile/mean of N-block maxima parametrization)
gevN.infomat

Information matrix of the generalized extreme value distribution (quantile/mean of N-block maxima parametrization)
gev.tem

Tangent exponential model approximation for the GEV distribution
gevN

Generalized extreme value distribution (quantile/mean of N-block maxima parametrization)
gev.score

Score vector for the generalized extreme value distribution
gevN.temstat

Tangent exponential model statistics for the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gev.temstat

Tangent exponential model statistics for the generalized extreme value distribution
gevdist

Generalized extreme value distribution
gev.abias

Asymptotic bias of block maxima for fixed sample sizes
gp.fit

Maximum likelihood estimate of generalized Pareto applied to threshold exceedances
gevr

Generalized extreme value distribution (return level parametrization)
gevN.mean

This function returns the mean of N observations from the GEV.
gevr.temstat

Tangent exponential model statistics for the GEV distribution (return level)
gev.bcor

Bias correction for GEV distribution
gevN.score

Score of the generalized extreme value distribution (quantile/mean of N-block maxima parametrization)
gev.infomat

Information matrix for the generalized extreme value distribution
gpd.bcor

Bias correction for GP distribution
gpd.abias

Asymptotic bias of threshold exceedances for k order statistics
gpd

Generalized Pareto distribution
gpd.Fscore

Firth's modified score equation for the generalized Pareto distribution
gevr.ll

Negative log likelihood of the generalized extreme value distribution (return levels)
gevr.infomat

Observed information matrix for GEV distribution (return levels)
gpd.pll

Profile log-likelihood for the generalized Pareto distribution
gpd.mle

Generalized Pareto maximum likelihood estimates for various quantities of interest
gpd.lmom

Estimation of generalized Pareto parameters via L-moments
gpd.infomat

Information matrix for the generalized Pareto distribution
gpd.bias

Cox-Snell first order bias expression for the generalized Pareto distribution
gevr.score

Score of the log likelihood for the GEV distribution (return levels)
gpd.ll

Log likelihood for the generalized Pareto distribution
gpd.score

Score vector for the generalized Pareto distribution
gpd.tem

Tangent exponential model approximation for the GP distribution
gpd.boot

Bootstrap approximation for generalized Pareto parameters
gpd.temstat

Tangent exponential model statistics for the generalized Pareto distribution
gpdN.score

Score vector of the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpdN.quant

This function returns the qth percentile of N maxima from the GP.
gpde

Generalized Pareto distribution (expected shortfall parametrization)
gpdN.ll

Negative log likelihood of the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpdN.temstat

Tangent exponential model statistics for the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpdN.mean

This function returns the mean of N maxima from the GP.
gpdN

Generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpde.temstat

Tangent exponential model statistics for the generalized Pareto distribution (expected shortfall)
gpde.score

Score vector for the GP distribution (expected shortfall)
gpde.ll

Negative log likelihood of the generalized Pareto distribution (expected shortfall)
gpde.infomat

Observed information matrix for the GP distribution (expected shortfall)
gpdr.infomat

Observed information matrix for GP distribution (return levels)
gpdN.infomat

Information matrix of the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpdist

Generalized Pareto distribution
gpdr.score

Score of the profile log likelihood for the GP distribution (return levels parametrization)
gpdr.temstat

Tangent exponential model statistics for the generalized Pareto distribution (return level)
intensBR

Intensity function for the Brown-Resnick model
leedspollution

Leeds air pollution
gpdr.ll

Negative log likelihood of the generalized Pareto distribution (return levels)
infomat.test

Information matrix test statistic and MLE for the extremal index
gpdr

Generalized Pareto distribution (return level parametrization)
maiquetia

Maiquetia Daily Rainfall
maxstable

Transform arguments using max stability
kjtail

Estimators of the tail coefficient
lambdadep

Estimation of the bivariate angular dependence function of Wadsworth and Tawn (2013)
likmgp

Likelihood for multivariate peaks over threshold models
gpdtopar

Transformation from the generalized Pareto to unit Pareto
plot.eprof

Plot of (modified) profile likelihood
plot.fr

Plot of tangent exponential model profile likelihood
ibvpot

Interpret bivariate threshold exceedance models
plot.mev_thselect_vmetric

Plots for Varty and al. metric-based threshold selection
penultimate

Smith's penultimate approximations
pandemics

Deaths from pandemics
nidd

River Nidd Flow
plot.mev_shape_rbm

Plots for random block maximum estimator
mvrnorm

Multivariate Normal distribution sampler
jac_gpd_pareto

Jacobian of the transformation from generalized Pareto to unit Pareto distribution
maxstabtest

P-P plot for testing max stability
nutrients

Nutrient data
intensXstud

Intensity function for the extremal Student model
pp

Poisson process of extremes.
plot.mev_tstab_mrl

Mean residual life parameter stability plot
plot.mev_thselect_wadsworth

Sequential analysis diagnostic plots for threshold selection
qweissman

Weissman's quantile estimator
rdir

Random variate generation for Dirichlet distribution on \(S_{d}\)
powerexp.cor

Power exponential correlation model
pp.ll

Log-likelihood of Poisson process of threshold exceedances
pp.infomat

Information matrix for the Poisson process likelihood
power.vario

Power variogram model
pp.score

Score vector for the Poisson process of threshold exceedances
rho.dk

Second order tail index estimator of Drees and Kaufmann
rlarg.infomat

Information matrix for the r-largest observations.
rho.gbw

Second order tail index estimator of Goegebeur et al. (2008)
rlarg

Distribution of the r-largest observations
rmev

Exact simulations of multivariate extreme value distributions
rgparp

Simulation from generalized R-Pareto processes
rho.fagh

Second order tail index estimator of Fraga Alves et al. Estimator of the second order regular variation parameter \(\rho \leq 0\) parameter for heavy-tailed data proposed by Fraga Alves et al. (2003)
rho.ghp

Second order tail index estimator of Gomes et al.
rlarg.score

Score of the r-largest observations
rlarg.ll

Log-likelihood of the point process of r-largest observations
rparpcshr

Simulation of generalized Huesler-Reiss Pareto vectors via composition sampling
shape.erm

Exponential regression estimator
shape.genjack

Generalized jackknife shape estimator
rparp

Simulation from R-Pareto processes
rparpcs

Simulation from Pareto processes using composition sampling
rmnorm

Multivariate Normal distribution sampler
rmevspec

Random samples from spectral distributions of multivariate extreme value models.
rrlarg

Simulate r-largest observations from point process of extremes
scoreindep

Ramos and Ledford test of independence
schlather.vario

Variogram model of Schlather and Moreva
shape.rbm

Random block maxima shape estimator of Wager
shape.moment

Dekkers and de Haan moment estimator for the shape
shape.osz

Extreme U-statistic Pickands estimator
shape.lthill

Lower-trimmed Hill estimator for the shape parameter
shape.vries

de Vries shape estimator
shape.genquant

Beirlant et al. generalized quantile shape estimator
smith.penult

Smith's penultimate approximations
shape.trimhill

Trimmed Hill estimator for the shape parameter
shape.hill

Hill's estimator of the shape parameter
shape.pickands

Pickand's shape estimator
test.maxstab

P-P plot for testing max stability
taildep

Coefficient of tail correlation and tail dependence
spunif

Semi-parametric marginal transformation to uniform
thselect.bab

Lower truncated Hill threshold selection
thselect.alrs

Automatic L-moment ratio selection method
tem.corr

Bridging the singularity for higher order asymptotics
test.scoreindep

Ramos and Ledford test of independence
smith.penult.fn

Smith's third penultimate approximation
spline.corr

Spline correction for Fraser-Reid approximations
stein_gp_lik

Stein's weighted generalized Pareto likelihood
thselect.gbw

Kernel-based threshold selection of Goegebeur, Beirlant and de Wet (2008)
thselect.cbm

Threshold selection by shape mean square error minimization
thselect.pec

Prediction error C-criterion threshold selection method
thselect.ksmd

Mahalanobis distance-based methodology
thselect.egp

Threshold selection based on extended generalized Pareto models
thselect.ncpgp

Northop and Coleman piecewise generalized Pareto threshold selection diagnostic
thselect.cv

Threshold selection via coefficient of variation
thselect.mdps

Minimum distance threshold selection procedure
thselect.mrl

Automated mean residual life plots
thselect.expgqt

Generalized quantile threshold selection
thselect.samsee

Threshold selection via SAMSEE
tstab.cv

Coefficient of variation threshold stability plot
thselect.vmetric

Metric-based threshold selection
thselect.pickands

Pickands' order statistics threshold selection method
tstab.egp

Threshold stability plots for extended generalized Pareto models
tstab.gpd

Parameter stability plots for peaks-over-threshold
thselect.wseq

Wadsworth's sequential analysis threshold selection
thselect.rbm

Threshold selection for the random block maxima method
thselect.sdinfo

Threshold selection diagnostic of Suveges and Davison
tstab.hill

Threshold stability plot for Hill estimator
venice

Venice Sea Levels
tstab.lthill

Threshold stability plots for left-truncated Hill estimators
xasym

Coefficient of extremal asymmetry
xdep.asym

Coefficient of extremal asymmetry
tstab.mrl

Mean residual life plot
xdep.xindex

Extremal index estimators
w1500m

Best 200 times of Women 1500m Track
xdep.eta

Coefficient of tail dependence
xdep.chibar

Coefficient chi-bar
xdep.chi

Coefficient of tail correlation