knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(tevt)
Adding the data to the current workspace
data(danish)
The standard averaged hill plot
gpd.plot.hill1(danish)
Alternative Hill plot over the interval $[0,1]$ with confidence intervals
gpd.plot.hill2(danish, conf.int = TRUE)
QQ-Estimator Plot
gpd.qq.est(danish)
An Implementation of the procedure proposed in Gomes et al. (2012) and Caeiro et al. (2016) for selecting the optimal sample fraction in tail index estimation.
gomes = gpd.gomes(danish) out = gpd.fit(danish, threshold=gomes$threshold) gpd.diag(out, safe=TRUE)
n Implementation of the procedure proposed in Danielsson et al. (2001) for selecting the optimal sample fraction in tail index estimation.
danielsson = gpd.danielsson(danish) out = gpd.fit(danish, threshold=danielsson$threshold) gpd.diag(out, safe=TRUE)
An Implementation of the procedure proposed in Hall (1990) for selecting the optimal sample fraction in tail index estimation
hall = gpd.hall(danish) out = gpd.fit(danish, threshold=hall$threshold) gpd.diag(out, safe=TRUE)
An Implementation of the so called Eye-balling Technique proposed in Danielsson et al. (2016)
eye = gpd.eye(danish) out = gpd.fit(danish, threshold=eye$threshold) gpd.diag(out, safe=TRUE)
Minimising the distance between the empirical tail and a theoretical Pareto tail with respect to k. An Implementation of the procedure proposed in Danielsson et al. (2016) for selecting the optimal threshold in extreme value analysis.
md = gpd.md(danish) out = gpd.fit(danish, threshold=md$threshold) gpd.diag(out, safe=TRUE)
Fitting the model
out <- gpd.fit(danish, threshold=25)
Cheap and easy diagnostic plots At some point, this needs to override S3 plot function
gpd.plot(out, pick=1) gpd.plot(out, pick=2) gpd.plot(out, pick=3) #gpd.plot(out, pick=4)
Better diagnostic plots, differs whether model is stationary.
gpd.diag(out, safe=TRUE)
But each of these can be accessed independently using their associated function names
gpd.qq2(out)
gpd.hist(out)
gpd.rlPlot(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.