pareto2: Pareto distribution (type 2)

Description Usage Arguments Details Value

Description

Density, distribution function, and quantile function for Pareto (type 2) distribution.

Usage

1
2
3
4
5
dpareto2(x, shape = 1, scale = 1, log = FALSE)

ppareto2(q, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)

qpareto2(p, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)

Arguments

x, q

A numeric vector of quantiles.

shape

A numeric value of shape parameter.

scale

A numeric value of scale parameter.

log, log.p

A logical; if TRUE, the probability p is given as log(p).

lower.tail

A logical; if TRUE, the probability is P[X <= x], otherwise, P[X > x].

p

A numeric vector of probabilities.

Details

The Pareto type 2distribution has the cumulative distribution function F(q) = 1 - (scale / (q + scale))^shape

Value

'dpareto2' gives the desity, 'ppareto2' gives the distribution, and 'qpareto2' gives the quantile function.


okamumu/Rsrat documentation built on Oct. 3, 2018, 2:36 a.m.