Description Usage Arguments Value Examples
The hazard function h(x) is defined as
h(x) = shape * exp(x / scale) / (1 + frail * scale * shape * (exp(x / scale) - 1))
When frail = 0, this simplifies to
h(x) = shape * exp(x / scale)
which is the hazard function of the standard Gompertz distribution
1 | hGgompertz(x, shape = 1, scale = 1, frail = 0, log.p = FALSE)
|
x |
A vector of positive numbers |
shape |
The |
scale |
The |
frail |
The |
log.p |
Logical, should the result be on a log scale? |
A numerical vector of the same length as x
.
1 | hGgompertz(c(1, 3, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.