Computes the equicoordinate quantile \(q\) such that \(P(X_1 \le q, X_2 \le q, \ldots, X_k \le q) = p\) for a multivariate normal random vector \(X\).
qmvnormr(
p,
mean = NULL,
sigma,
n0 = 1024,
n_max = 16384,
R = 8,
abseps = 1e-04,
releps = 0,
seed = 314159,
parallel = TRUE,
nthreads = 0
)The probability level (cumulative probability).
The mean vector. If NULL (default), a zero vector of
appropriate length is used.
The covariance (or correlation) matrix of the distribution.
Initial number of samples per replication for the Monte Carlo integration.
Maximum number of samples allowed per replication.
Number of independent replications used to estimate the error.
Absolute error tolerance for the probability calculation.
Relative error tolerance for the probability calculation.
Random seed for reproducibility. If 0, a seed is generated from the computer clock.
Logical; if TRUE, computations are performed in parallel.
Number of threads for parallel execution. If 0, the default RcppParallel behavior is used.
A numeric value representing the calculated equicoordinate quantile.
This function finds the value \(q\) using a root-finding algorithm
applied to the pmvnormr function. It solves for the value where
the multivariate normal cumulative distribution function equals the
target probability \(p\).
Positive semidefinite sigma matrices (including singular cases) are
supported in the general covariance branch via minimal diagonal
stabilization during factorization.