revd: Random numbers for GEV and GP

revdR Documentation

Random numbers for GEV and GP

Description

Drawing random numbers from the GEV or GP distribution

Usage

revd(n, location = NULL, scale = NULL, shape = NULL,
  threshold = NULL, model = c("gev", "gpd"), silent = FALSE)

Arguments

n

Number of samples to draw

location

Of the GEV distribution. Default = NULL.

scale

Of the GEV/GP distribution. Default = NULL.

shape

Of the GEV/GP distribution. Default = NULL.

threshold

Used in the GP distribution. This parameter is optional but should be provided in order to create a representation of the fitted data exceedance. Default = NULL.

model

String determining whether to calculate the initial parameters of the GEV ("gev") or GP ("gpd") function. Default = "gev"

silent

Whether to display warnings or not. Default = FALSE.

Details

This function was originally part of the extRemes package. But since one had to provide the threshold, I couldn't use it insight the fit.gpd function. In contrast to the original implementation this function only features constant location, scale, and shape parameters. If you want to do time dependent analysis of extreme events, please refer to the original package.

Value

Numerical vector of length n drawn from the corresponding distribution.

Author(s)

Philipp Mueller

See Also

Other extremes: block.list, block.xts, block, decluster.list, decluster.xts, decluster, extremal.index, gev.density, gpd.density, qevd, return.level.climex.fit.gev, return.level.climex.fit.gpd, return.level.list, return.level.numeric, return.level, rlevd, threshold.list, threshold.xts, threshold, upper.limit.climex.fit.gev, upper.limit.climex.fit.gpd, upper.limit.list, upper.limit.numeric, upper.limit


philmu/climex documentation built on July 11, 2022, 3:23 p.m.