pareto2: Pareto distribution (type 2)

pareto2R Documentation

Pareto distribution (type 2)

Description

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

Usage

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)

rpareto2(n, shape = 1, scale = 1)

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 2 distribution has the cumulative distribution function F(q) = 1 - (scale / (q + scale))^shape

Value

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


okamumu/Rsrat documentation built on Feb. 10, 2024, 11:07 p.m.