mrlPlot: Mean Residual Life Plot for the Generalized Pareto...

Description Usage Arguments Examples

View source: R/mrlPlot.R

Description

Plots the empirical mean residual life, with confidence intervals. The mean residual life plot provides a visual diagnostic tool to choose a threshold for exceedances.

Usage

1
mrlPlot(data, thresholds = NULL, conf = 0.95, npoints = 100)

Arguments

data

Vector of data.

thresholds

A numeric vector of threshold(s) to plot vertically. Defaults to NULL.

conf

The level of the confidence bounds to use. Defaults to 0.95.

npoints

The number of points to interpolate with. Defaults to 100.

Examples

1
2
3
## Not run
## x <- rgpd(500, loc = 0, scale = 1, shape = 0.1)
## mrlPlot(x, thresholds = c(2))

eva documentation built on May 30, 2017, 4:11 a.m.