Last chance! 50% off unlimited learning
Sale ends in
An empirical mean residual life plot, including confidence intervals, is produced. The mean residual life plot aids the selection of a threshold for the GPD or point process models.
mrlplot(x, nint = 100, alpha = 0.05, na.action = na.fail, xlab = "Threshold", ...)
numeric vector of data.
Number of thresholds to use.
number giving the 1 - alpha
confidence levels to use.
function to be called to handle missing values.
character string giving the abscissa label to use.
optional arguments to plot
.
A matrix with the mean excess values and their confidence bounds is returned invisibly.
The mean excesses are found for each value of a range of thresholds that cover the range of the data (less one at the high end). CIs are also shown based on the normal df for the mean excesses. The goal is to find the lowest threshold such that the graph is linear with increasing thresholds, within uncertainty.
See Coles (2001) sec. 4.3.1 for more information.
Coles, S. (2001). An introduction to statistical modeling of extreme values, London, United Kingdom: Springer-Verlag, 208 pp.
# NOT RUN {
data(Fort)
mrlplot(Fort$Prec)
# }
Run the code above in your browser using DataLab