Multivariate normal probability
mvn_cdf.RdP(lower < X < upper) for X ~ N(0, R) by Genz's method: exact in one
and two dimensions; in more, Genz's integral after a Cholesky separation
of the variables (reordered as Genz and Bretz do), estimated by
scrambles independently scrambled Sobol sequences, the points doubled
until three standard errors are at most abs_tol or the points reach
max_points. The method of mvtnorm::pmvnorm(), with Sobol points in
place of its lattice rules, so results agree within the errors.
Usage
mvn_cdf(
upper,
correlation,
lower = NULL,
abs_tol = 1e-05,
max_points = 2^22,
scrambles = 10,
seed = 0
)Arguments
- upper
Upper limits (
Inffor none).- correlation
A positive definite correlation or covariance matrix.
- lower
Lower limits;
NULLfor-Inf.- abs_tol
Absolute error to reach, three standard errors; with ten scrambles the true error exceeds it in about 1.5% of calls.
- max_points
Most integrand evaluations.
- scrambles
Independent scrambles, at least 2.
- seed
Seed of the scrambles, so a call is reproducible.