Learn R Programming

mev (version 2.0)

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

12,397

Version

2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Leo Belzile

Last Published

October 22nd, 2025

Functions in mev (2.0)

Lambda2cov

Transform variogram matrix to covariance of conditional random field
W.diag

Wadsworth's univariate and bivariate exponential threshold diagnostics
angmeasdir

Dirichlet mixture smoothing of the angular measure
abisko

Abisko rainfall
angmeas

Rank-based transformation to angular measure
adf

Estimation of the bivariate angular dependence function
Stein_weights

Stein's vector of weights
PickandsXU

Extreme U-statistic Pickands estimator
angextrapo

Bivariate angular dependence function for extrapolation based on rays
NC.diag

Score and likelihood ratio tests fit of equality of shape over multiple thresholds
confint.eprof

Confidence intervals for profile likelihood objects
.Joint_MLE_Expl

Joint maximum likelihood estimation for exponential model
distg

Distance matrix with geometric anisotropy
clikmgp

Censored likelihood for multivariate peaks over threshold models
.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.
.rPdirmix

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

Posterior predictive distribution and density for the GEV distribution
.rPbilog

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

GP fitting function of Grimshaw (1993)
dgeoaniso

Distance matrix with geometric anisotropy
.mvasym.check

Internal function
.rPexstud

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

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

Threshold selection via coefficient of variation
.gpd_2D_fit

Maximum likelihood method for the generalized Pareto Model
.rPHuslerReiss

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

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

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

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

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

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

Robust threshold selection of Dupuis
.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
.rmevA1

Multivariate extreme value distribution sampling algorithm via angular measure
.rexstudspec

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

Automated mean residual life plots
.rbrspec

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

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

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

Random samples from asymmetric logistic distribution
.rPsite

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

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

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

Random sampling from spectral distribution on l1 sphere
egp

Extended generalised Pareto families
emplik

Self-concordant empirical likelihood for a vector mean
egpdist

Extended generalized Pareto distribution
egp.pll

Profile log likelihood for extended generalized Pareto models
.rpairexpspec

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

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

Multivariate extreme value distribution sampling algorithm via extremal functions
.wecdf

Weighted empirical distribution function
.rsmithspec

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

Fit of extended GP models and parameter stability plots
.rpairbetaspec

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

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

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

Deprecated function for parameter stability plots
egp2.fit

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

Extended generalised Pareto log likelihood
extgp

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

Extremal index estimators
expme

Exponent measure for multivariate generalized Pareto distributions
eskrain

Eskdalemuir Observatory Daily Rainfall
fit.egp

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

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

Estimators of the extremal coefficient
fit.extgp

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

Pairwise extremogram for max-risk functional
pextgp.G

Extended GP functions
fit.wgpd

Maximum likelihood estimation for weighted generalized Pareto distribution
fit.rho

Estimator of the second order tail index parameter
fit.gpd

Maximum likelihood estimation for the generalized Pareto distribution
fit.rlarg

Maximum likelihood estimates of point process for the r-largest observations
fit.shape

Shape parameter estimates
fit.gev

Maximum likelihood estimation for the generalized extreme value distribution
frwind

French wind data
fit.pp

Maximum likelihood estimation of the point process of extremes
geomagnetic

Magnetic storms
gev.Fscore

Firth's modified score equation for the generalized extreme value distribution
gev

Generalized extreme value distribution
gev.infomat

Information matrix for the generalized extreme value distribution
gev.bias

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

Profile log-likelihood for the generalized extreme value distribution
gev.abias

Asymptotic bias of block maxima for fixed sample sizes
gev.bcor

Bias correction for GEV distribution
gev.mle

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

N-year return levels, median and mean estimate
gev.ll

Log likelihood for the generalized extreme value distribution
gev.retlev

Return level for the generalized extreme value distribution
gevN.infomat

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

Generalized extreme value distribution
gevN

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

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

Tangent exponential model approximation for the GEV distribution
gev.temstat

Tangent exponential model statistics for the generalized extreme value distribution
gpd

Generalized Pareto distribution
gevN.temstat

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

Score vector for the generalized extreme value distribution
gevN.mean

This function returns the mean of N observations from the GEV.
gevN.ll

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

Asymptotic bias of threshold exceedances for k order statistics
gevr

Generalized extreme value distribution (return level parametrization)
gpd.bcor

Bias correction for GP distribution
gevr.infomat

Observed information matrix for GEV distribution (return levels)
gevr.temstat

Tangent exponential model statistics for the GEV distribution (return level)
gpd.Fscore

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

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

Negative log likelihood of the generalized extreme value distribution (return levels)
gpd.boot

Bootstrap approximation for generalized Pareto parameters
gpd.mle

Generalized Pareto maximum likelihood estimates for various quantities of interest
gp.fit

Maximum likelihood estimate of generalized Pareto applied to threshold exceedances
gpd.infomat

Information matrix for the generalized Pareto distribution
gpd.bias

Cox-Snell first order bias expression for the generalized Pareto distribution
gpd.lmom

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

Tangent exponential model approximation for the GP distribution
gpd.pll

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

Tangent exponential model statistics for the generalized Pareto distribution
gpd.ll

Log likelihood for the generalized Pareto distribution
gpd.score

Score vector for the generalized Pareto distribution
gpdN

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

Observed information matrix for the GP distribution (expected shortfall)
gpdN.ll

Negative log likelihood of the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpde

Generalized Pareto distribution (expected shortfall parametrization)
gpdN.score

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

Information matrix 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.ll

Negative log likelihood of the generalized Pareto distribution (expected shortfall)
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.
gpdist

Generalized Pareto distribution
gpdtopar

Transformation from the generalized Pareto to unit Pareto
gpdr.ll

Negative log likelihood of the generalized Pareto distribution (return levels)
gpde.temstat

Tangent exponential model statistics for the generalized Pareto distribution (expected shortfall)
gpdr

Generalized Pareto distribution (return level parametrization)
gpde.score

Score vector for the GP distribution (expected shortfall)
gpdr.infomat

Observed information matrix for GP distribution (return levels)
ibvpot

Interpret bivariate threshold exceedance models
maxstable

Transform arguments using max stability
kjtail

Estimators of the tail coefficient
maiquetia

Maiquetia Daily Rainfall
gpdr.temstat

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

Estimation of the bivariate angular dependence function of Wadsworth and Tawn (2013)
gpdr.score

Score of the profile log likelihood for the GP distribution (return levels parametrization)
jac_gpd_pareto

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

Smith's penultimate approximations
intensBR

Intensity function for the Brown-Resnick model
likmgp

Likelihood for multivariate peaks over threshold models
plot.fr

Plot of tangent exponential model profile likelihood
nidd

River Nidd Flow
plot.eprof

Plot of (modified) profile likelihood
plot.mev_shape_rbm

Plots for random block maximum estimator
nutrients

Nutrient data
infomat.test

Information matrix test statistic and MLE for the extremal index
plot.mev_thselect_vmetric

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

Deaths from pandemics
leedspollution

Leeds air pollution
maxstabtest

P-P plot for testing max stability
pp

Poisson process of extremes.
plot.mev_thselect_wadsworth

Sequential analysis diagnostic plots for threshold selection
plot.mev_tstab_mrl

Mean residual life parameter stability plot
qweissman

Weissman's quantile estimator
pp.infomat

Information matrix for the Poisson process likelihood
intensXstud

Intensity function for the extremal Student model
mvrnorm

Multivariate Normal distribution sampler
pp.ll

Log-likelihood of Poisson process of threshold exceedances
rdir

Random variate generation for Dirichlet distribution on \(S_{d}\)
rho.gbw

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

Second order tail index estimator of Gomes et al.
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)
rgparp

Simulation from generalized R-Pareto processes
power.vario

Power variogram model
rlarg.infomat

Information matrix for the r-largest observations.
pp.score

Score vector for the Poisson process of threshold exceedances
rlarg.ll

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

Exact simulations of multivariate extreme value distributions
rho.dk

Second order tail index estimator of Drees and Kaufmann
rlarg

Distribution of the r-largest observations
rlarg.score

Score of the r-largest observations
powerexp.cor

Power exponential correlation model
shape.erm

Exponential regression estimator
rmevspec

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

Simulation from R-Pareto processes
rmnorm

Multivariate Normal distribution sampler
rrlarg

Simulate r-largest observations from point process of extremes
schlather.vario

Variogram model of Schlather and Moreva
rparpcs

Simulation from Pareto processes using composition sampling
shape.genjack

Generalized jackknife shape estimator
rparpcshr

Simulation of generalized Huesler-Reiss Pareto vectors via composition sampling
scoreindep

Ramos and Ledford test of independence
shape.genquant

Beirlant et al. generalized quantile shape estimator
shape.lthill

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

Extreme U-statistic Pickands estimator
shape.hill

Hill's estimator of the shape parameter
shape.vries

de Vries shape estimator
smith.penult

Smith's penultimate approximations
shape.trimhill

Trimmed Hill estimator for the shape parameter
shape.rbm

Random block maxima shape estimator of Wager
shape.moment

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

Pickand's shape estimator
stein_gp_lik

Stein's weighted generalized Pareto likelihood
spunif

Semi-parametric marginal transformation to uniform
thselect.bab

Lower truncated Hill threshold selection
tem.corr

Bridging the singularity for higher order asymptotics
test.scoreindep

Ramos and Ledford test of independence
thselect.alrs

Automatic L-moment ratio selection method
taildep

Coefficient of tail correlation and tail dependence
test.maxstab

P-P plot for testing max stability
spline.corr

Spline correction for Fraser-Reid approximations
smith.penult.fn

Smith's third penultimate approximation
thselect.ncpgp

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

Generalized quantile threshold selection
thselect.cv

Threshold selection via coefficient of variation
thselect.pec

Prediction error C-criterion threshold selection method
thselect.gbw

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

Mahalanobis distance-based methodology
thselect.mdps

Minimum distance threshold selection procedure
thselect.mrl

Automated mean residual life plots
thselect.pickands

Pickands' order statistics threshold selection method
thselect.rbm

Threshold selection for the random block maxima method
thselect.vmetric

Metric-based threshold selection
tstab.hill

Threshold stability plot for Hill estimator
tstab.mrl

Mean residual life plot
tstab.cv

Coefficient of variation threshold stability plot
thselect.wseq

Wadsworth's sequential analysis threshold selection
thselect.sdinfo

Threshold selection diagnostic of Suveges and Davison
thselect.samsee

Threshold selection via SAMSEE
tstab.lthill

Threshold stability plots for left-truncated Hill estimators
tstab.egp

Threshold stability plots for extended generalized Pareto models
tstab.gpd

Parameter stability plots for peaks-over-threshold
xdep.chi

Coefficient of tail correlation
xdep.asym

Coefficient of extremal asymmetry
xasym

Coefficient of extremal asymmetry
venice

Venice Sea Levels
w1500m

Best 200 times of Women 1500m Track
xdep.chibar

Coefficient chi-bar
xdep.xindex

Extremal index estimators
xdep.eta

Coefficient of tail dependence