Learn R Programming

ssdtools (version 0.3.7)

gompertz: Gompertz Distribution

Description

Probability density, cumulative distribution, inverse cumulative distribution, random sample and starting values functions.

Usage

dgompertz(x, llocation = 0, lshape = 0, log = FALSE)

pgompertz(q, llocation = 0, lshape = 0, lower.tail = TRUE, log.p = FALSE)

qgompertz(p, llocation = 0, lshape = 0, lower.tail = TRUE, log.p = FALSE)

rgompertz(n, llocation = 0, lshape = 0)

sgompertz(x)

Arguments

x

A numeric vector of values.

llocation

location parameter on the log scale.

lshape

shape parameter on the log scale.

log

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

q

vector of quantiles.

lower.tail

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

log.p

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

p

vector of probabilities.

n

number of observations.

Value

A numeric vector.

See Also

stats::dgamma()

Examples

Run this code
# NOT RUN {
x <- seq(0.01, 5, by = 0.01)
plot(x, dgompertz(x), type = "l")
# }

Run the code above in your browser using DataLab