Weibull hazard, cumulative hazard and inverse cumulative hazard
Functions which return the hazard, cumulative hazard and inverse cumulative hazard at time t for a Weibull distribution with shape parameter λ, scale parameter θ
and true hazard ratio μ.
haz_weib(t, lambda, theta, mu = log(1))
chaz_weib(t, lambda, theta, mu = log(1))
inv_chaz_weib(t, lambda, theta, mu = log(1))
Arguments
t
: time of evaluation.
lambda
: shape parameter λ
theta
: scale parameter θ
mu
: (optional) true excess hazard rate μ.
Returns
Value of specified function at time t.
Details
The hazard function of a Weibull distribution is given by:
h(t∣λ,θ,μ)=θλ(θt)λ−1e\muh(t∣λ,θ,μ)=λ/θ(t/θ)(λ−1)exp(μ)
The cumulative hazard (with true hazard ratio μ) is given by:
H(t∣λ,θ,μ)=(θt)λe\muH(λ,θ,μ)=(t/θ)λexp(μ)
The inverse cumulative hazard (with true hazard ratio μ) by:
H−1(t∣λ,θ,μ)=θ(eμt)1/λH(−1)(t∣λ,θ,μ)=θ(t/eμ)1/λ