shape.hill | R Documentation |
Given a sample of positive observations, calculate the tail index or shape parameter. The shape estimate returned is positive.
shape.hill(xdat, k)
xdat |
vector of positive observations |
kmin |
minimum number of upper order statistics (exceedances) for the estimator |
kmax |
maximum number of upper order statistics (exceedances) for the estimator |
a data frame with the number of order statistics k
and the shape parameter estimate shape
, or a single numeric value if kmin
equals kmax
.
Hill, B.M. (1975). A simple general approach to inference about the tail of a distribution. Annals of Statistics, 3, 1163-1173.
xdat <- mev::rgp(n = 200, loc = 1, scale = 0.5, shape = 0.5)
shape.hill(xdat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.