Threshold Selection and Uncertainty for Extreme Value Analysis

Provides functions for the selection of thresholds for use in extreme value models, based mainly on the methodology in Northrop, Attalides and Jonathan (2017) . It also performs predictive inferences about future extreme values, based either on a single threshold or on a weighted average of inferences from multiple thresholds, using the 'revdbayes' package < https://cran.r-project.org/package=revdbayes>. At the moment only the case where the data can be treated as independent identically distributed observations is considered.


threshr

Travis-CI Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge

Threshold Selection and Uncertainty for Extreme Value Analysis

The threshr package deals primarily with the selection of thresholds for use in extreme value models. It also performs predictive inferences about future extreme values. These inferences can either be based on a single threshold or on a weighted average of inferences from multiple thresholds. The weighting reflects an estimated measure of the predictive performance of the threshold and can incorporate prior probabilities supplied by a user. At the moment only the simplest case, where the data can be treated as independent identically distributed observations, is considered, as described in Northrop et al. (2017). Future releases will tackle more general situations.

A simple example

The main function in the threshr package is ithresh. It uses Bayesian leave-one-out cross-validation to compare the extreme value predictive ability resulting from the use of each of a user-supplied set of thresholds. The following code produces a threshold diagnostic plot using a dataset gom containing 315 storm peak significant waveheights. We set a vector u_vec of thresholds; call ithresh, supplying the data and thresholds; and use then plot the results. In this minimal example (ithresh has further arguments) thresholds are judged in terms of the quality of prediction of whether the validation observation lies above the highest threshold in u_vec and, if it does, how much it exceeds this highest threshold.

u_vec_gom <- quantile(gom, probs = seq(0, 0.9, by = 0.05))
gom_cv <- ithresh(data = gom, u_vec = u_vec_gom)
plot(gom_cv)

Installation

To get the current released version from CRAN:

install.packages("threshr")

Vignette

See vignette("threshr-vignette", package = "threshr") for an overview of the package.

News

threshr 1.0.1

Bug fixes and minor improvements

  • Some examples and tests are modified slightly to avoid using unrealistically high or low thresholds.

  • Dependence on R verion changed to 3.3.0 to avoid CRAN NOTE.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("threshr")

1.0.1 by Paul J. Northrop, 4 months ago


http://github.com/paulnorthrop/threshr


Report a bug at http://github.com/paulnorthrop/threshr/issues


Browse source code at https://github.com/cran/threshr


Authors: Paul J. Northrop [aut, cre, cph] , Nicolas Attalides [aut]


Documentation:   PDF Manual  


Task views: Extreme Value Analysis


GPL (>= 2) license


Imports graphics, methods, revdbayes, rust, stats

Suggests knitr, rmarkdown, testthat


See at CRAN