dprodnormal gives the density, pprodnormal gives the
distribution function, qprodnormal gives the quantile function,
and rprodnormal generates random deviates.
Invalid arguments will result in return value NaN with a warning.
Arguments
x, q
vector of quantiles.
mu
the vector of means.
This is recycled against the sigma, but not against the x,q,p,n.
sigma
the vector of standard deviations.
This is recycled against the mu, but not against the x,q,p,n.
log
logical; if TRUE, densities \(f\) are given
as \(\mbox{log}(f)\).
order.max
the order to use in the approximate density,
distribution, and quantile computations, via the Gram-Charlier,
Edeworth, or Cornish-Fisher expansion.
p
vector of probabilities.
n
number of observations.
log.p
logical; if TRUE, probabilities p are given
as \(\mbox{log}(p)\).
lower.tail
logical; if TRUE (default), probabilities are
\(P[X \le x]\), otherwise, \(P[X > x]\).
Let \(Z_i \sim \mathcal{N}\left(\mu_i, \sigma_i^2\right)\)
be independently distributed normal variates, with means \(\mu_i\)
and variances \(\sigma_i^2\).
Suppose $$Y = \prod_i Z_i.$$
Then \(Y\) follows a product of normals distribution.