## Fix a 5-dimensional asymmetric tail dependence structure
(ds5 <- gen.ds(d = 5))
## Generate a 1000-sample of Mevlog random vectors associated with ds5
sample5 <- rMevlog(n = 1000, ds = ds5)
## Compute empirical tic values according cardinality
res2 <- ticEmp(sample5, ind = 2, k = 100, sobol = TRUE)
res3 <- ticEmp(sample5, ind = 3, k = 100, sobol = TRUE)
res4 <- ticEmp(sample5, ind = 4, k = 100, sobol = TRUE)
## Represent the empirical indices associated with pairs
barplot(res2$tic ~ as.character(res2$subsets), las = 2,
xlab = "", ylab = "", main = "Tail Sobol Indices (cardinality 2)")
## Represent the empirical indices associated with triplets
barplot(res3$tic ~ as.character(res3$subsets), las = 2,
xlab = "", ylab = "", main = "Tail Sobol Indices (cardinality 3)")
## Represent the empirical indices associated with quadriplets
barplot(res4$tic ~ as.character(res4$subsets), las = 2,
xlab = "", ylab ="", main = "Tail Sobol Indices (cardinality 4)")
## Check the sum-to-one constraint of empirical tail Sobol indices
sum(ticEmp(sample5, ind = "with.singletons", k = 100, sobol = TRUE)$tic)
Run the code above in your browser using DataLab