Learn R Programming

texmex (version 1.1)

mrlPlot: Mean residual life plot

Description

Produce a mean residual life plot to aid identifying a threshold over which to fit a generalized Pareto distribution

Usage

mrlPlot(data, umin = min(data), umax = max(data) - 0.1, conf = 0.95, nint = 100, ...)

Arguments

data
A numeric vector.
umin
The minimum value over which to threshold the data.
umax
The maximum value over which to threshold the data.
conf
The coverage of confidence interval to plot. Defaults to plotting a 95% interval.
nint
The number of points at which to compute the plot.
...
Optional arguments to plot

Value

  • NULL

Details

The function was originally written by Janet E Heffernan and appears in the ismev package. This version modified by Harry Southworth to allow more control over the appearance of the plot.