Last chance! 50% off unlimited learning
Sale ends in
alpha
and scale parameter theta
.dgompertz(x, alpha, theta, log = FALSE)
pgompertz(q, alpha, theta, lower.tail = TRUE, log.p = FALSE)
qgompertz(p, alpha, theta, lower.tail = TRUE, log.p = FALSE)
rgompertz(n, alpha, theta)
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, and
rgompertz
generates random deviates.
shape
and scale
parameters, respectively.
.Random.seed
about random number; sgompertz
for Gompertz survival / hazard etc. functions
## Load data sets
data(sys2)
## Maximum Likelihood(ML) Estimates of alpha & theta for the data(sys2)
## Estimates of alpha & theta using 'maxLik' package
## alpha.est = 0.00121307, theta.est = 0.00173329
dgompertz(sys2, 0.00121307, 0.00173329, log = FALSE)
pgompertz(sys2, 0.00121307, 0.00173329, lower.tail = TRUE, log.p = FALSE)
qgompertz(0.25, 0.00121307, 0.00173329, lower.tail=TRUE, log.p = FALSE)
rgompertz(30, 0.00121307, 0.00173329)
Run the code above in your browser using DataLab