Hill {qrmtools} | R Documentation |
Hill Estimator and Plot
Description
Compute the Hill estimator and Hill plot.
Usage
Hill_estimator(x, k = c(10, length(x)), conf.level = 0.95)
Hill_plot(x, k = c(10, length(x)), conf.level = 0.95, Hill.estimator = NULL,
log = "x", xlim = NULL, ylim = NULL,
xlab = "Order statistics", ylab = "Tail index",
CI.col = adjustcolor(1, alpha.f = 0.2), lines.args = list(),
xaxis2 = TRUE, xlab2 = "Empirical probability", ...)
Arguments
x |
|
k |
|
conf.level |
confidence level of the confidence intervals. |
Hill.estimator |
object as returned by |
log , xlim , ylim , xlab , ylab |
see |
CI.col |
color of the pointwise asymptotic confidence intervals
(CIs); if |
lines.args |
|
xaxis2 |
|
xlab2 |
label of the secondary x-axis. |
... |
additional arguments passed to the underlying
|
Details
See McNeil et al. (2015, Section 5.2.4, (5.23))
Value
Hill_estimator()
:A five-column matrix containing the indices
k
, their corresponding empirical probabilitiesk.prob
, the estimated tail indicestail.index
, and the lower and upper CI endpointsCI.low
andCI.up
.Hill_plot()
:Hill plot by side-effect.
Author(s)
Marius Hofert
References
McNeil, A. J., Frey, R. and Embrechts, P. (2015). Quantitative Risk Management: Concepts, Techniques, Tools. Princeton University Press.
Examples
set.seed(271)
X <- rt(1000, df = 3.5)
Y <- X[X > 0]
Hill_plot(Y)
Hill_plot(Y, log = "", CI.col = NA)