Skip to contents

The Gaussian copula's distribution function at each point with Genz's error estimate (mvn_cdf()): exact in two dimensions, and wherever at most two coordinates are below 1.

Usage

copula_cdf_estimate(copula, u, abs_tol = 1e-05, max_points = 2^22, seed = 0)

Arguments

copula

A gaussian_copula().

u

A point or a matrix with one point per row.

abs_tol

Absolute error to reach, three standard errors.

max_points

Most integrand evaluations.

seed

Seed of the scrambles, so a call is reproducible.

Value

A data frame with value, error, points and converged, one row per point.

Examples

r <- matrix(0.5, 3, 3)
diag(r) <- 1
copula_cdf_estimate(gaussian_copula(r), c(0.5, 0.5, 0.5), abs_tol = 1e-7)
#>   value        error points converged
#> 1  0.25 7.338686e-08 655360      TRUE