Usage
pnorMix(q, obj, lower.tail = TRUE, log.p = FALSE)qnorMix(p, obj, lower.tail = TRUE, log.p = FALSE,
tol = .Machine$double.eps^0.25, maxiter = 1000, traceRootsearch = 0,
method = c("interpQspline", "interpspline", "eachRoot", "root2"),
l.interp = pmax(1, pmin(20, 1000 / m)), n.mu.interp = 100)
Arguments
obj
an object of class norMix
.
p
numeric vector of probabilities. Note that for all
method
s but "eachRoot"
, qnorMix(p, *)
works
with the full vector p
, typically using (inverse)
interpolation approaches; consequently the re
q
numeric vector of quantiles
lower.tail
logical; if TRUE (default), probabilities are
$P[X \le x]$, otherwise, $P[X > x]$.
log.p
logical; if TRUE, probabilities p are given as log(p).
tol, maxiter
tolerance and maximal number of iterations for the
root search algorithm, see method
below and uniroot
. traceRootsearch
logical or integer in ${0,1,2,3}$,
determining the amount of information printed during root search.
method
a string specifying which algorithm is used for the
root search. Originally, the only method was a
variation of "eachRoot"
, which is the default now when only
very few quantiles are sought. For large
l.interp
positive integer for method = "interQpspline"
or "interpspline"
, determining the number of values in each
mu-interval.
n.mu.interp
positive integer for method = "interQpspline"
or "interpspline"
, determining the (maximal) number of
mu-values to be used as knots for inverse interpolation.