if (FALSE) {
set.seed(123)
xdat <- abs(rnorm(5000))
thresh <- quantile(xdat, seq(0, 0.9, by = 0.1))
(diag <- thselect.wseq(
xdat = xdat,
thresh = thresh,
plot = TRUE,
type = "ps"))
# Multivariate example, with coefficient of tail dependence
xbvn <- rmnorm(n = 6000L,
mu = rep(0, 2),
Sigma = cbind(c(1, 0.7), c(0.7, 1)))
thselect.wseq(
xdat = xbvn,
qlev = seq(0, 0.9, length.out = 30),
model = 'taildep',
plot = TRUE)
}
Run the code above in your browser using DataLab