Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gpd.fitrange

Fitting the GPD Model Over a Range of Thresholds


Description

Maximum-likelihood fitting for a stationary GPD model, over a range of thresholds. Graphs of parameter estimates which aid the selection of a threshold are produced.

Usage

gpd.fitrange(data, umin, umax, nint = 10, show = FALSE, ...)

Arguments

data

A numeric vector of data to be fitted.

umin, umax

The minimum and maximum thresholds at which the model is fitted.

nint

The number of fitted models.

show

Logical; if TRUE, print details of each fit.

...

Optional arguments to gpd.fit.

Value

Two graphs showing maximum likelihood estimates and confidence intervals of the shape and modified scale parameters over a range of thresholds are produced. A list object is returned invisibly with components: 'threshold' numeric vector of length 'nint' giving the thresholds used, 'mle' an 'nint X 3' matrix giving the maximum likelihood parameter estimates (columns are location, scale and shape respectively), 'se' an 'nint X 3' matrix giving the estimated standard errors for the parameter estimates (columns are location, scale and shape, resp.), 'ci.low', 'ci.up' 'nint X 3' matrices giving the lower and upper 95 intervals, resp. (columns same as for 'mle' and 'se').

See Also

Examples

## Not run: data(rain)
## Not run: gpd.fitrange(rain, 10, 40)

ismev

An Introduction to Statistical Modeling of Extreme Values

v1.42
GPL (>= 2)
Authors
Original S functions written by Janet E. Heffernan with R port and R documentation provided by Alec G. Stephenson.
Initial release
2018-05-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.