Copula distribution function
copula_cdf.RdC(u) = P(U_1 <= u_1, ..., U_d <= u_d) at each point: the Gaussian
copula's exactly in two dimensions (the bivariate normal cdf by Genz's
method, about 1e-15) and in more by Genz's quasi-Monte Carlo method
within an absolute error of about 1e-5 (mvn_cdf();
copula_cdf_estimate() for the settings and the error), the
Archimedean copulas' in any. The t copula has none yet and is an error.
Arguments
- copula
A copula.
- u
A point (a vector of
copula@dimensionvalues in[0, 1]) or a matrix with one point per row.
Examples
copula_cdf(gaussian_copula(matrix(c(1, 0.5, 0.5, 1), 2)), c(0.5, 0.5))
#> [1] 0.3333333
copula_cdf(archimedean_copula("gumbel", 2), rbind(c(0.2, 0.3), c(0.9, 0.9)))
#> [1] 0.1339973 0.8615672