Learn R Programming

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

fExtremes

Rmetrics - Modelling Extreme Events in Finance

The fExtremes package provides functions for analysing and modelling extreme events in financial time Series. The topics include: (i) data pre-processing, (ii) explorative data analysis, (iii) peak over threshold modelling, (iv) block maxima modelling, (v) estimation of VaR and CVaR, and (vi) the computation of the extreme index. It is part of the Rmetrics software project.

An example

The following code simulates data from a GEV distribution, fits a GEV distribution to these data and creates model diagnostic plots.

library(fExtremes)
# Simulate GEV Data, use default length n=1000
x <- gevSim(model = list(xi = 0.25, mu = 0 , beta = 1), n = 1000)

# Fit GEV data using maximum likelihood estimation
fit <- gevFit(x, type = "mle") 
fit
#> 
#> Title:
#>  GEV Parameter Estimation 
#> 
#> Call:
#>  gevFit(x = x, type = "mle")
#> 
#> Estimation Type:
#>   gev mle 
#> 
#> Estimated Parameters:
#>         xi         mu       beta 
#> 0.18304217 0.04548892 0.99014748 
#> 
#> Description
#>   Fri Aug  5 17:30:44 2022

Installation

To get the current released version from CRAN:

install.packages("fExtremes")

Copy Link

Version

Install

install.packages('fExtremes')

Monthly Downloads

837

Version

4021.83

License

GPL (>= 2)

Maintainer

Paul Northrop

Last Published

August 6th, 2022

Functions in fExtremes (4021.83)

fExtremes-package

Modelling Extreme Events in Finance
GpdDistribution

Generalized Pareto Distribution
GevMdaEstimation

Generalized Extreme Value Modelling
GevModelling

Generalized Extreme Value Modelling
GpdModelling

GPD Distributions for Extreme Value Theory
ExtremeIndex

Extremal Index Estimation
GevRisk

Generalized Extreme Value Modelling
ExtremesData

Explorative Data Analysis
GevDistribution

Generalized Extreme Value Distribution
DataPreprocessing

Extremes Data Preprocessing
gpdRisk

GPD Distributions for Extreme Value Theory
ValueAtRisk

Value-at-Risk
TimeSeriesData

Time Series Data Sets