gumbel.cop <- gumbelCopula(3)
tau(gumbel.cop)
rho(gumbel.cop)
lambda(gumbel.cop)
iTau(joeCopula(), 0.5)
stopifnot(all.equal(tau(gumbel.cop), copGumbel@tau(3)),
all.equal(lambda(gumbel.cop),
c(copGumbel@lambdaL(3), copGumbel@lambdaU(3)),
check.attributes=FALSE),
all.equal(iTau (gumbel.cop, 0.681),
copGumbel@iTau(0.681))
)
## let us compute the sample versions
x <- rCopula(200, gumbel.cop)
cor(x, method = "kendall")
cor(x, method = "spearman")
## compare with the true parameter value 3
iTau(gumbel.cop, cor(x, method="kendall" )[1,2])
iRho(gumbel.cop, cor(x, method="spearman")[1,2])
Run the code above in your browser using DataLab