powered by
Given a sample of positive observations, calculate the tail index or shape parameter. The shape estimate returned is positive.
shape.hill(xdat, k)
a data frame with the number of order statistics k and the shape parameter estimate shape, or a single numeric value if k is a scalar integer.
k
shape
vector of positive observations
vector of order statistics; if missing, a vector going from 10 to sample size minus one.
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)
Run the code above in your browser using DataLab