50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


success (version 1.0.1)

exp_hazards: 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 λ and true hazard ratio μ.

Usage

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

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

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

Value

Value of specified function at time t.

Arguments

t

time of evaluation.

lambda

parameter of the exponential distribution.

mu

(optional) true excess hazard rate μ.

Details

The hazard function of an exponential distribution is given by: h(t|λ,μ)=λeμ The cumulative hazard (with true hazard ratio μ) is given by: H(t|λ,μ)=λteμ The inverse cumulative hazard (with true hazard ratio μ) by: H1(t|λ,μ)=tλeμ