## setup
family <- "Gumbel"
tau <- 0.5
m <- 256
dmax <- 20
x <- seq(0, 20, length.out=m)
## compute and plot pacR() for various d's
y <- vapply(1:dmax, function(d)
pacR(x, family=family, theta=iTau(archmCopula(family), tau), d=d),
rep(NA_real_, m))
plot(x, y[,1], type="l", ylim=c(0,1),
xlab = expression(italic(x)),
ylab = substitute(italic(F[R](x))~~"for d=1:"*dm, list(dm=dmax)))
for(k in 2:dmax) lines(x, y[,k])
Run the code above in your browser using DataLab