# NOT RUN {
# set up vine copula model
d <- 20
n <- 2e2
u <- matrix(runif(n * d), n, d)
vc <- vinecop(u, family = "indep")
# plot
plot(vc, tree = c(1, 2))
plot(vc, edge_labels = "pair")
# set up another vine copula model
pcs <- lapply(1:3, function(j) # pair-copulas in tree j
lapply(runif(4 - j), function(cor) bicop_dist("gaussian", 0, cor)))
mat <- rvine_matrix_sim(4)
vc <- vinecop_dist(pcs, mat)
# contour plot
contour(vc)
# }
Run the code above in your browser using DataLab