Learn R Programming

mbbefd (version 0.8.12)

oidistribution: One-inflated distributions

Description

These functions perform probabilistic analysis as well as random sampling on one-inflated distributions.

Usage

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, ...)

Value

A numeric value or a vector.

Arguments

x, q

vector of quantiles.

p

vector of probabilities.

n

number of observations. If length(n) > 1, the length is take to be the number required.

dfun, pfun, qfun, rfun

d, p, q, r functions of the original distribution.

p1

parameter for the probability at x=1.

ecfun, mfun

exposure curve and moment functions which should have arguments x, ... and order, ... respectively.

order

order of the raw moment.

log, log.p

logical; if TRUE, probabilities p are given as log(p).

lower.tail

logical; if TRUE (default), probabilities are \(P[X <= x]\), otherwise, \(P[X> x]\).

...

further arguments to pass to dfun, pfun, qfun, rfun, ecfun, mfun.

Author

Dutang Christophe

Details

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.

See Also

oibeta, oiunif, oistpareto and oidistribution.