DGP: Discrete Generalized Pareto Distribution

Description Usage Arguments Value

Description

Density, distribution function, quantile function and random generation for the discrete generalized Pareto distribution with parameters mu, scale, and shape.

Usage

1
2
3
4
5
6
7
ddgp(x, mu = 0, scale = 1, shape = 1)

pdgp(q, mu = 0, scale = 1, shape = 1, lower.tail = TRUE, log.p = FALSE)

qdgp(p, mu = 0, scale = 1, shape = 1, lower.tail = TRUE, log.p = FALSE)

rdgp(n, mu = 0, scale = 1, shape = 1)

Arguments

x, q

vector of quantiles

mu

location parameter

scale

scale parameter

shape

shape parameter

lower.tail

logical; if TRUE (default), probabilities are P[X %leq x], otherwise, P[X > x].

p

vector of probabilities

n

number of observations

log, log.p

logical; if TRUE, probabilities p are given as log(p).

Value

ddgp gives the density, pdgp gives the distribution function, qdgp gives the quantile function, and rdgp generates random deviates.


ebalderama/ZimulatE documentation built on Dec. 20, 2021, 3:12 a.m.