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
x <- rgpd(500, loc = 0, scale = 1, shape = 0.1)
mrlPlot(x, thresholds = c(2))

eva documentation built on Jan. 13, 2021, 8:34 p.m.