These functions perform probabilistic analysis as well as random sampling on one-inflated distributions.
doifun(x, dfun, p1, log=FALSE, ...)
poifun(q, pfun, p1, lower.tail = TRUE, log.p = FALSE, ...)
qoifun(p, qfun, p1, lower.tail = TRUE, log.p = FALSE, ...)
roifun(n, rfun, p1, ...)
ecoifun(x, ecfun, mfun, p1, ...)
moifun(order, mfun, p1, ...)
tloifun(p1, ...)A numeric value or a vector.
vector of quantiles.
vector of probabilities.
number of observations. If length(n) > 1, the length is take to be the number required.
d, p, q, r functions of the original distribution.
parameter for the probability at x=1.
exposure curve and moment functions which should have arguments
x, ... and order, ... respectively.
order of the raw moment.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE (default), probabilities are \(P[X <= x]\), otherwise, \(P[X> x]\).
further arguments to pass to dfun, pfun, qfun, rfun, ecfun, mfun.
Dutang Christophe
d,p,q,ec,m,tl functions of oifun computes the density function,
the distribution function, the quantile function, the exposure curve function,
raw moments and total loss of an one-inflated distribution of an original distribution
specified by d,p,q,ec,m-fun.
roifun generates random variates of the resulting distribution.
oibeta, oiunif, oistpareto and oidistribution.