| MeanExcess | R Documentation | 
Computes the mean excess values for a vector of observations. These mean excess values can then be plotted as a function of the data or as a function of the tail parameter k.
MeanExcess(data, plot = TRUE, k = FALSE, main = "Mean excess plot", ...)
| data | Vector of  | 
| plot | Logical indicating if the mean excess values should be plotted in a mean excess plot, default is  | 
| k | Logical indicating if the mean excess scores are plotted as a function of the tail parameter  | 
| main | Title for the plot, default is  | 
| ... | Additional arguments for the  | 
The mean excess plot is
(k,e_{k,n})
or
(X_{n-k,n}, e_{k,n})
with
e_{k,n}=1/k\sum_{j=1}^k X_{n-j+1,n}-X_{n-k,n}.
Note that the mean excess plot is the derivative plot of the Exponential QQ-plot.
See Section 4.1 of Albrecher et al. (2017) for more details.
A list with following components:
| k | Vector of the values of the tail parameter  | 
| X | Vector of the order statistics  | 
| e | Vector of the mean excess values corresponding to the tail parameters in  | 
Tom Reynkens based on S-Plus code from Yuri Goegebeur.
Albrecher, H., Beirlant, J. and Teugels, J. (2017). Reinsurance: Actuarial and Statistical Aspects, Wiley, Chichester.
Beirlant J., Goegebeur Y., Segers, J. and Teugels, J. (2004). Statistics of Extremes: Theory and Applications, Wiley Series in Probability, Wiley, Chichester.
ExpQQ, LognormalQQ_der, ParetoQQ_der, WeibullQQ_der
data(norwegianfire)
# Mean excess plots for Norwegian Fire Insurance data for claims in 1976.
# Mean excess values as a function of k
MeanExcess(norwegianfire$size[norwegianfire$year==76], k=TRUE)
# Mean excess values as a function of the data
MeanExcess(norwegianfire$size[norwegianfire$year==76], k=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.