Learn R Programming

⚠️There's a newer version (1.17) of this package.Take me there.

mev (version 1.16)

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

1,572

Version

1.16

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Leo Belzile

Last Published

November 30th, 2023

Functions in mev (1.16)

.rPHuslerReiss

Generate from extremal Husler-Reiss distribution \(Y \sim {P_x}\), where \(P_{x}\) is probability of extremal function
.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
gpd.infomat

Information matrix for the generalized Pareto distribution
.rPneglog

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

Algebraic calculation of the expected information
abisko

Abisko rainfall
spline.corr

Spline correction for Fraser-Reid approximations
cvselect

Threshold selection via coefficient of variation
pp.ll

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

Information matrix for the generalized extreme value distribution
automrl

Automated mean residual life plots
.gev.postpred

Posterior predictive distribution and density for the GEV distribution
chibar

Parametric estimates of \(\bar{\chi}\)
.gpd_2D_fit

Maximum likelihood method for the generalized Pareto Model
fit.egp

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

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

Confidence intervals for profile likelihood objects
angmeasdir

Dirichlet mixture smoothing of the angular measure
W.diag

Wadsworth's univariate and bivariate exponential threshold diagnostics
.mvrnorm_arma

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

Interpret bivariate threshold exceedance models
.rbilogspec

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

Rank-based transformation to angular measure
rlarg.score

Score of the r-largest observations
.Joint_MLE_NHPP

Joint maximum likelihood for the non-homogeneous Poisson Process
.rpairexpspec

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

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

Censored likelihood for multivariate peaks over threshold models
emplik

Self-concordant empirical likelihood for a vector mean
.rdirmixspec

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

Bivariate angular function for extrapolation based on rays
fit.gev

Maximum likelihood estimation for the generalized extreme value distribution
.mvasym.check

Internal function
.C1

Contrast matrix
rparp

Simulation from R-Pareto processes
.Joint_MLE_Expl

Joint maximum likelihood estimation for exponential model
likmgp

Likelihood for multivariate peaks over threshold models
maiquetia

Maiquetia Daily Rainfall
xasym

Coefficient of extremal asymmetry
.rlogspec

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

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

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

Fit of extended GP models and parameter stability plots
maxstabtest

P-P plot for testing max stability
fit.pp

Maximum likelihood estimation of the point process of extremes
gpdist

Generalized Pareto distribution
gev.retlev

Return level for the generalized extreme value distribution
.rhrspec

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

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

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

Generalized extreme value distribution
.rPlog

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

Tangent exponential model approximation for the GEV distribution
gevr

Generalized extreme value distribution (return level parametrization)
gpdtopar

Transformation from the generalized Pareto to unit Pareto
gev.temstat

Tangent exponential model statistics for the generalized extreme value distribution
gpd.pll

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

Bootstrap approximation for generalized Pareto parameters
lambdadep

Estimation of the bivariate lambda function of Wadsworth and Tawn (2013)
extgp

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

Tangent exponential model statistics for the generalized Pareto distribution (expected shortfall)
egp.fitrange

Deprecated function for parameter stability plots
extremo

Pairwise extremogram for max-risk functional
gpd.mle

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

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

Bias correction for GP distribution
fit.rlarg

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

Score vector for the generalized extreme value distribution
gevN.score

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

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

Log likelihood for the generalized Pareto distribution
intensXstud

Intensity function for the extremal Student model
plot.eprof

Plot of (modified) profile likelihood
gpd.score

Score vector for the generalized Pareto distribution
rdir

Random variate generation for Dirichlet distribution on \(S_{d}\)
gpdr

Generalized Pareto distribution (return level parametrization)
distg

Distance matrix with geometric anisotropy
mvrnorm

Multivariate Normal distribution sampler
.rsmithspec

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

Algebraic score
.rbrspec

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

Jacobian of the transformation from generalized Pareto to unit Pareto distribution
.wecdf

Weighted empirical distribution function
.rdirspec

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

Parameter stability plots for peaks-over-threshold
gpde.score

Score vector for the GP distribution (expected shortfall)
powerexp.cor

Power exponential correlation model
power.vario

Power variogram model
rparpcs

Simulation from Pareto processes using composition sampling
scoreindep

Ramos and Ledford test of independence
rlarg.infomat

Information matrix for the r-largest observations.
.rmevA1

Multivariate extreme value distribution sampling algorithm via angular measure
vmetric.diag

Metric-based threshold selection
venice

Venice Sea Levels
rlarg.ll

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

Simulation from generalized R-Pareto processes
gevN.infomat

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

Asymptotic bias of block maxima for fixed sample sizes
.rmevA2

Multivariate extreme value distribution sampling algorithm via extremal functions
geomagnetic

Magnetic storms
PickandsXU

Extreme U-statistic Pickands estimator
gevr.infomat

Observed information matrix for GEV distribution (return levels)
.rPbilog

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

Semi-parametric marginal transformation to uniform
.rmevasy

Random samples from asymmetric logistic distribution
gpdN.infomat

Information matrix of the generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gev.mle

Generalized extreme value maximum likelihood estimates for various quantities of interest
.fit.gpd.grimshaw

GP fitting function of Grimshaw (1993)
schlather.vario

Variogram model of Schlather and Moreva
fit.extgp

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

Generalized extreme value distribution
rlarg

Distribution of the r-largest observations
.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.
gevr.ll

Negative log likelihood of the generalized extreme value distribution (return levels)
gev.Fscore

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

Maximum likelihood estimation for the generalized Pareto distribution
egp2.fit

Fit an extended generalized Pareto distribution of Naveau et al.
gev.ll

log likelihood for the generalized extreme value distribution
pextgp.G

Extended GP functions
gpdN.ll

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

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

This function returns the mean of N maxima from the GP.
extgp.G

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

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

Score of the log likelihood for the GEV distribution (return levels)
gevN

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

Tangent exponential model approximation for the GP distribution
gpdr.score

Score of the profile log likelihood for the GP distribution (return levels parametrization)
gp.fit

Maximum likelihood estimate of generalized Pareto applied to threshold exceedances
.rwexpbsspec

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

Extremal index estimators based on interexceedance time and gap of exceedances
.rmevspec_cpp

Random sampling from spectral distribution on l1 sphere
extcoef

Estimators of the extremal coefficient
.rPdirmix

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

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

Simulation of generalized Huesler-Reiss Pareto vectors via composition sampling
gpde.ll

Negative log likelihood of the generalized Pareto distribution (expected shortfall)
NC.diag

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

Transform variogram matrix to covariance of conditional random field
egp-function

Extended generalised Pareto families of Papastathopoulos and Tawn (functions)
gev.Nyr

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

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

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

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

Tangent exponential model statistics for the generalized Pareto distribution
nidd

River Nidd Flow
rrlarg

Simulate r-largest observations from point process of extremes
infomat.test

Information matrix test statistic and MLE for the extremal index
gevr.temstat

Tangent exponential model statistics for the GEV distribution (return level)
pp

Poisson process of extremes.
gpdN

Generalized Pareto distribution (mean of maximum of N exceedances parametrization)
gpdN.quant

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

Best 200 times of Women 1500m Track
frwind

French wind data
egp

Extended generalised Pareto families
eskrain

Eskdalemuir Observatory Daily Rainfall
expme

Exponent measure for multivariate generalized Pareto distributions
intensBR

Intensity function for the Brown-Resnick model
gpd

Generalized Pareto distribution
gev.bcor

Bias correction for GEV distribution
gpdr.infomat

Observed information matrix for GP distribution (return levels)
gev.bias

Cox-Snell first order bias for the GEV distribution
smith.penult

Smith's penultimate approximations
plot.fr

Plot of tangent exponential model profile likelihood
pp.infomat

Information matrix for the Poisson process likelihood
gpde

Generalized Pareto distribution (expected shortfall parametrization)
gev.pll

Profile log-likelihood for the generalized extreme value distribution
gpdN.temstat

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

This function returns the mean of N observations from the GEV.
pp.score

Score vector for the Poisson process of threshold exceedances
rmev

Exact simulations of multivariate extreme value distributions
rmevspec

Random samples from spectral distributions of multivariate extreme value models.
gpd.abias

Asymptotic bias of threshold exceedances for k order statistics
smith.penult.fn

Smith's third penultimate approximation
gpde.infomat

Observed information matrix for the GP distribution (expected shortfall)
tem.corr

Bridging the singularity for higher order asymptotics
gpdr.ll

Negative log likelihood of the generalized Pareto distribution (return levels)
nutrients

Nutrient data
taildep

Coefficient of tail correlation and tail dependence
pandemics

Deaths from pandemics