Learn R Programming

mbbefd (version 0.7)

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

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.

Value

  • A numeric value or a vector.

Details

d,p,q,ec,m functions of oifun computes the density function, the distribution function, the quantile function, the exposure curve function and raw moments 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.

Examples

Run this code
#TODO

Run the code above in your browser using DataLab