dnacopula(x, u, log=FALSE, ...)
"outer_nacopula "
.log
of the density
should be returned.dacopula
function (slot), such as n.MC
(non-negative integer) for
possible Monte Carlo evaluation (see dacopula
in
acopula
numeric
vector containing the values of the density of the
Archimedean copula at u
. Hofert, M.,
absdPsi
in class acopula
.## Construct a twenty-dimensional Gumbel copula with parameter chosen
## such that Kendall's tau of the bivariate margins is 0.25.
theta <- copJoe@iTau(.25)
C20 <- onacopula("J", C(theta, 1:20))
## Evaluate the copula density at the point u = (0.5,...,0.5)
u <- rep(0.5, 20)
dnacopula(C20, u)
## the same with Monte Carlo based on 10000 simulated "frailties"
dnacopula(C20, u, n.MC = 10000)
## Evaluate the exact log-density at several points
u <- matrix(runif(100), ncol=20)
dnacopula(C20, u, log = TRUE)
Run the code above in your browser using DataLab