fit.rho | R Documentation |
Estimator of the second order tail index parameter
fit.rho(xdat, k, method = c("fagh", "dk", "ghp"), ...)
xdat |
vector of positive observations |
k |
number of highest order statistics to use for estimation |
method |
string for the estimator |
... |
additional arguments passed to individual routinescurrently ignored. |
# Example with rho = -0.2
n <- 1000
xdat <- mev::rgp(n = n, shape = 0.2)
kmin <- floor(n^0.995)
kmax <- ceiling(n^0.999)
rho_est <- fit.rho(
xdat = xdat,
k = n - kmin:kmax)
rho_med <- mean(rho_est$rho)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.