| GPD_shape_plot | R Documentation | 
Fit GPDs to various thresholds and plot the fitted GPD shape as a function of the threshold.
GPD_shape_plot(x, thresholds = seq(quantile(x, 0.5), quantile(x, 0.99),
                                   length.out = 65),
               estimate.cov = TRUE, conf.level = 0.95,
               CI.col = adjustcolor(1, alpha.f = 0.2),
               lines.args = list(), xlim = NULL, ylim = NULL,
               xlab = "Threshold", ylab = NULL,
               xlab2 = "Excesses", plot = TRUE, ...)
| x | 
 | 
| thresholds | 
 | 
| estimate.cov | 
 | 
| conf.level | confidence level of the confidence intervals if
 | 
| CI.col | color of the pointwise asymptotic confidence intervals
(CIs); if  | 
| lines.args | 
 | 
| xlim,ylim,xlab,ylab | see  | 
| xlab2 | label of the secondary x-axis. | 
| plot | 
 | 
| ... | additional arguments passed to the underlying
 | 
Such plots can be used in the peaks-over-threshold method for determining the optimal threshold (as the smallest after which the plot is (roughly) stable).
Invisibly returns a list containing the thresholds
considered, the corresponding excesses and the fitted GPD
objects as returned by the underlying fit_GPD_MLE().
Marius Hofert
set.seed(271)
X <- rt(1000, df = 3.5)
GPD_shape_plot(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.