ZIDGP: Zero-inflated Discrete Generalized Pareto Distribution

Description Usage Arguments Value

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dzidgp(x, theta = 0.5, mu = 0, scale = 1, shape = 1, log = FALSE)

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

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

rzidgp(n, theta = 0.5, mu = 0, scale = 1, shape = 1)

Arguments

x, q

vector of quantiles

theta

zero-inflation parameter (probability of zeros)

mu

location parameter

scale

scale parameter

shape

shape parameter

log, log.p

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

lower.tail

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

p

vector of probabilities

n

number of observations

Value

dzigp gives the density, pzigp gives the distribution function, qzigp gives the quantile function, and rzigp generates random deviates.


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