
Last chance! 50% off unlimited learning
Sale ends in
dorder(x, densfun, distnfun, ..., distn, mlen = 1, j = 1,
largest = TRUE, log = FALSE)
porder(q, distnfun, ..., distn, mlen = 1, j = 1, largest = TRUE,
lower.tail = TRUE)
rorder(n, quantfun, ..., distn, mlen = 1, j = 1, largest = TRUE)
log
argument (a simple wrapper
can always be constructed to achieve this).densfun
, distnfun
and quantfun
such that the density, distribution and quantile functions are
formed upon the addition of the prefixes d
j
th largest
(default) or smallest of mlen
, according to the value of
largest
.TRUE
(default) use the j
th
largest order statistic, otherwise use the j
th smallest.TRUE
, the log density is returned.TRUE
(default) probabilities
are P[X <= x],="" otherwise="" p[x=""> x].dorder
gives the density function, porder
gives the
distribution function and qorder
gives the quantile function
of a selected order statistic from a sample of size mlen
,
from a specified distibution. rorder
generates random deviates.rextreme
, rgev
dorder(2:4, dnorm, pnorm, mean = 0.5, sd = 1.2, mlen = 5, j = 2)
dorder(2:4, distn = "norm", mean = 0.5, sd = 1.2, mlen = 5, j = 2)
dorder(2:4, distn = "exp", mlen = 2, j = 2)
porder(2:4, distn = "exp", rate = 1.2, mlen = 2, j = 2)
rorder(5, qgamma, shape = 1, mlen = 10, j = 2)
Run the code above in your browser using DataLab