Density function, distribution function, quantile function and
random generation for the maximum/minimum of a given number of
independent variables from a specified distribution.
Density, distribution and
quantile function of the specified distribution. The density
function must have a log argument (a simple wrapper
can always be constructed to achieve this).
...
Parameters of the specified distribution.
distn
A character string, optionally given as an
alternative to densfun, distnfun and quantfun
such that the density, distribution and quantile functions are
formed upon the addition of the prefixes d, p and
q respectively.
mlen
The number of independent variables.
largest
Logical; if TRUE (default) use maxima,
otherwise minima.
log
Logical; if TRUE, the log density is returned.
lower.tail
Logical; if TRUE (default) probabilities
are P[X <= x], otherwise P[X > x].
Value
dextreme gives the density function, pextreme gives the
distribution function and qextreme gives the quantile function
of the maximum/minimum of mlen independent variables from
a specified distibution. rextreme generates random deviates.