shape
and scale
.dgompertz(x, shape = 1, scale = 1, log = FALSE)
pgompertz(q, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)
qgompertz(p, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)
hgompertz(x, shape = 1, scale = 1, log = FALSE)
Hgompertz(x, shape = 1, scale = 1, log.p = FALSE)
rgompertz(n, shape = 1, scale = 1)
length(n) > 1
, the length
is taken to be the number required.dgompertz
gives the density,
pgompertz
gives the distribution function,
qgompertz
gives the quantile function,
hgompertz
gives the hazard function,
Hgompertz
gives the cumulative hazard function, and
rgompertz
generates random deviates. Invalid arguments will result in return value NaN
, with a warning.
shape
parameter $a$ and
scale
parameter $\sigma$ has hazard given by
$$h(x) = a \exp(x/\sigma)$$
for $x \ge 0$.