exp_hazards {cgrcusum}R Documentation

Exponential hazard, cumulative hazard and inverse cumulative hazard

Description

Functions which return the hazard, cumulative hazard and inverse cumulative hazard at time t for an exponential distribution with parameter lambda and true hazard ratio mu.

Usage

haz_exp(t, lambda)

chaz_exp(t, lambda, mu = log(1))

inv_chaz_exp(t, lambda, mu = log(1))

Arguments

t

time of evaluation.

lambda

parameter of the exponential distribution.

mu

(optional) true excess hazard rate \mu.

Details

The hazard function of an exponential distribution is given by:

h(\lambda) = \lambda

The cumulative hazard (with true hazard ratio \mu) is given by:

H(\lambda, \mu) = \lambda t e^\mu

The inverse cumulative hazard (with true hazard ratio \mu) by:

H^{-1}(\lambda, \mu) = \frac{t}{\lambda e^\mu}

Value

Value of specified function at time t.

See Also

Other utils: calc_risk(), gen_arriv_times(), gen_surv_times(), runlength()


[Package cgrcusum version 0.1.0 Index]