tau <- 0.5
(theta <- copGumbel@iTau(tau)) # 2
d <- 2
# two ways to specify a Gumbel copula:
cop <- onacopulaL("Gumbel", list(theta,1:d))
gCop <- gumbelCopula(theta, dim=d) #
n <- 1000
set.seed(1)
U <- rCopula(n, cop)
U. <- cbind(U[,1], cCopula(U, cop=cop)) # should be ~ U[0,1]^2
plot(U.[,1],U.[,2])
stopifnot(all.equal(cacopula(U, cop),# with deprecation warning
cCopula(U, cop)))
## more examples: --> ?rtrafo % ./gtrafo.Rd
Run the code above in your browser using DataLab