1infl-stpareto: One-inflated shifted truncated pareto distribution

oistparetoR Documentation

One-inflated shifted truncated pareto distribution

Description

These functions perform probabilistic analysis as well as random sampling on one-inflated shifted truncated pareto distribution.

Usage


doistpareto(x, a, p1, log=FALSE)
poistpareto(q, a, p1, lower.tail = TRUE, log.p = FALSE)
qoistpareto(p, a, p1, lower.tail = TRUE, log.p = FALSE)
roistpareto(n, a, p1)
ecoistpareto(x, a, p1)
moistpareto(order, a, p1)
tloistpareto(a, 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.

a, p1

parameters.

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-oistpareto functions computes the density function, the distribution function, the quantile function, the exposure curve function, raw moments and total loss of the one-inflated shifted truncated pareto distribution. roistpareto 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(doistpareto(x, 2, 1/3), n=200)

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

spedygiorgio/mbbefd documentation built on Dec. 14, 2024, 7:25 a.m.