1infl-Distribution: One-inflated distributions

Description Usage Arguments Details Value Author(s) See Also

Description

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

Usage

1
2
3
4
5
6
7
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, ...)

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.

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.

Value

A numeric value or a vector.

Author(s)

Dutang Christophe

See Also

oibeta, oiunif, oistpareto and oidistribution.


mbbefd documentation built on May 19, 2017, 1:27 p.m.

Search within the mbbefd package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.