Threshold diagnostics for peaks over threshold
threshold_diagnostics.RdAt each threshold, the mean excess and the generalized Pareto fitted to
the exceedances, with standard errors: the numbers behind the mean
residual life plot and the parameter stability plots of
ismev::mrl.plot() and ismev::gpd.fitrange(). Above a threshold where
a GPD fits, the mean excess is linear in the threshold and the shape xi
and modified scale beta - xi * u are constant up to their sampling
error: pick the lowest threshold above which they are stable, then fit
pot_tail() there. Standard errors come from the observed information
and hold for xi > -0.5.
Value
A data frame with one row per threshold: threshold, n_above,
mean_excess, mean_excess_se (the standard deviation of the
exceedances over sqrt(n_above)), xi, xi_se, beta,
modified_scale and modified_scale_se. Fields that cannot be
estimated (fewer than 2 values above for the standard error of the mean
excess, 3 for the GPD) are NaN.
Examples
p <- (seq_len(2000) - 0.5) / 2000
x <- ((1 - p)^(-1 / 2) - 1)^(1 / 1.5) # a Burr: xi tends to 1/3
threshold_diagnostics(x, c(0.5, 1, 2))
#> threshold n_above mean_excess mean_excess_se xi xi_se beta
#> 1 0.5 1092 0.7527763 0.03177546 0.2228084 0.03541290 0.5824132
#> 2 1.0 500 0.8886733 0.05726225 0.2720611 0.05614566 0.6466934
#> 3 2.0 136 1.2741738 0.15344695 0.2915781 0.11126794 0.9080970
#> modified_scale modified_scale_se
#> 1 0.4710090 0.04023917
#> 2 0.3746323 0.09179955
#> 3 0.3249409 0.31653172