oiunif {mbbefd}R Documentation

One-inflated uniform distribution

Description

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

Usage


doiunif(x, p1, log=FALSE)
poiunif(q, p1, lower.tail = TRUE, log.p = FALSE)
qoiunif(p, p1, lower.tail = TRUE, log.p = FALSE)
roiunif(n, p1)
ecoiunif(x, p1)
moiunif(order, p1)
tloiunif(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.

p1

parameter.

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].

Details

d,p,q,ec,m,tl-oiunif functions computes the density function, the distribution function, the quantile function, the exposure curve function, raw moments and total loss of the one-inflated uniform distribution. roiunif generates random variates of this distribution.

Value

A numeric value or a vector.

Author(s)

Dutang Christophe

See Also

mbbefd-distr and oidistribution.

Examples


#density
curve(doiunif(x, 1/3), n=200, ylim=0:1)

#cdf
curve(poiunif(x, 1/3), n=200)

[Package mbbefd version 0.8.11 Index]