R/threshr-package.R

#' threshr: Threshold Selection and Uncertainty for Extreme Value Analysis
#'
#' Provides functions for the selection of extreme value threshold.
#' At the moment only the simplest case, where the data can be treated as
#' independent identically distributed observations, is considered.
#' Future releases will tackle more general situations.
#' See the 'threshr' website for more information, documentation
#' and examples.
#'
#' @details The main function in the threshr package is \code{\link{ithresh}},
#'   which uses leave-one-out cross-validation in a Bayesian setup to compare
#'   the predictive ability resulting from the use of each of a user-supplied
#'   set of thresholds.
#'
#'   See \code{vignette("threshr-vignette", package = "threshr")} for an
#'   overview of the package.
#'
#' @references Northrop, P. J. (2017). revdbayes: Ratio-of-Uniforms Sampling
#'   for Bayesian Extreme Value Analysis. R package version 1.2.1.
#'   \url{https://cran.r-project.org/package=revdbayes}.
#' @references Northrop, P. J., Attalides, N. and Jonathan, P. (2017)
#'   Cross-validatory extreme value threshold selection and uncertainty
#'   with application to ocean storm severity.
#'   \emph{Journal of the Royal Statistical Society Series C: Applied
#'   Statistics}, \strong{66}(1), 93-120. \doi{10.1111/rssc.12159}
#'
#' @seealso The packages \code{\link[revdbayes]{revdbayes}} and
#'   \code{\link[rust]{rust}}.
#' @seealso \code{\link{ithresh}} for threshold selection in the i.i.d. case
#'   based on leave-one-out cross-validation.
#' @docType package
#' @import methods
#' @importFrom stats predict
#' @importFrom graphics plot
"_PACKAGE"

#' Storm peak significant wave heights from the Gulf of Mexico
#'
#' A numeric vector containing 315 hindcasts of storm peak significant wave
#' heights, in metres, from 1900 to 2005 at an unnamed location in the Gulf
#' of Mexico.
#'
#' @format A vector containing 315 observations.
#' @source Oceanweather Inc. (2005) GOMOS -- Gulf of Mexico hindcast study.
#' @references Northrop, P. J., N. Attalides, and P. Jonathan. (2017).
#'   Cross-Validatory Extreme Value Threshold Selection and Uncertainty with
#'   Application to Ocean Storm Severity. \emph{Journal of the Royal
#'   Statistical Society: Series C (Applied Statistics)}, \strong{66}(1),
#'   93-120. \doi{10.1111/rssc.12159}.
"gom"

#' Storm peak significant wave heights from the North Sea
#'
#' A numeric vector containing 628 hindcasts of storm peak significant wave
#' heights, in metres, from 1964 to 1995 at an unnamed location in the North
#' Sea.
#'
#' @format A vector containing 628 observations.
#' @source Oceanweather Inc. (1995) NEXT -- North Sea hindcast study.
#' @references Northrop, P. J., N. Attalides, and P. Jonathan. (2017).
#'   Cross-Validatory Extreme Value Threshold Selection and Uncertainty with
#'   Application to Ocean Storm Severity. \emph{Journal of the Royal
#'   Statistical Society: Series C (Applied Statistics)}, \strong{66}(1),
#'   93-120. \doi{10.1111/rssc.12159}.
"ns"

Try the threshr package in your browser

Any scripts or data that you put into this service are public.

threshr documentation built on Sept. 12, 2024, 6:50 a.m.