Description Usage Arguments Value Author(s) Examples
An instance of a convex mixture of two copulas is generated.
1 | mixtureCopula(param = c(0.2, 0.2, 0.5), memberCops = c(normalCopula(0), claytonCopula(1)))
|
param |
A numeric vector: the set of parameters for the first and second copula appended by the mixture coefficient. |
memberCops |
A list of two copulas. |
An object of class mixtureCopula
Benedikt Graeler
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | cop <- mixtureCopula(c(5,-0.8,0.5),
memberCops = list(gumbelCopula(), claytonCopula()))
cop
smpl <- rCopula(100, cop)
par(mfrow=c(2,2), mai=c(0.4,0.4,0.4,0.4))
plot(smpl,asp=1, main="sample")
persp(cop, dCopula, asp=1, main="density")
contour(cop, pCopula, asp=1, main="CDF")
points(rCopula_y(0.4, cop, 10), col="red")
tau(cop)
rho(cop)
lambda(cop)
# too few points, but faster for package compilation
kenCop <- getKendallDistr(cop, smpl)
curve(kenCop, main="Kendall function", asp=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.