kjtail | R Documentation |
Estimators proposed by Krupskii and Joe under second order expansion
for the coefficient of tail dependence \eta
and the
joint tail orthant probability
kjtail(
data,
q,
ptail = NULL,
mqu,
type = 1,
ties.method = eval(formals(rank)$ties.method)
)
data |
a matrix of observations |
q |
vector of quantile levels |
ptail |
tail probability smaller than |
mqu |
marginal quantile levels for semiparametric estimation; data above this are modelled using a generalized Pareto distribution. If missing, empirical estimation is used throughout |
type |
integer indicating the estimator type |
ties.method |
method for ties |
a list with elements
p
quantile level for estimation
eta
estimated coefficient of tail dependence \eta
eta_sd
estimated standard error of \eta
k1
parameter of the tail expansion
pat
proportion of observations above the threshold
lambda
tail dependence coefficient (sic)
tailprob
tail probability, if ptail
is provided
EXPERIMENTAL. The numerical optimization of the likelihood surface is difficult, as the function is ill-behaved. Visual inspection of estimates is necessary to check for non-convergence.
d <- 2
rho <- 0.9
Sigma <- matrix(rho, d, d) + diag(1 - rho, d)
eta_true <- 1/sum(Sigma)
data <- mev::mvrnorm(
n = 1e4,
mu = rep(0, d),
Sigma = Sigma)
q <- seq(0.95, 0.995, by = 0.005)
taildep <- kjtail(data = data, q = q)
with(taildep,
plot(x = 1-pat,
y = eta,
ylim = c(0,1),
panel.first = {abline(h = (1+rho)/2)}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.