hGgompertz: The hazard function of a Gompertz-gamma distribution

Description Usage Arguments Value Examples

Description

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

Usage

1
hGgompertz(x, shape = 1, scale = 1, frail = 0, log.p = FALSE)

Arguments

x

A vector of positive numbers

shape

The shape parameter

scale

The scale parameter

frail

The frailty parameter

log.p

Logical, should the result be on a log scale?

Value

A numerical vector of the same length as x.

Examples

1
hGgompertz(c(1, 3, 5))

goranbrostrom/eha2 documentation built on May 17, 2019, 7:59 a.m.