---
output: html_document
---

### Computing Values For the Cumulative Hazard Function in R

- No predefined R function exists for $H(t)$, but we can take advantage of the fact that
$$H(t)=-\ln[1-F(t)]$$ 

    + For $\;T \sim Weibull(\beta,\theta)$<br>$H(t)=$ `-log(1 - pweibull(q = quantile, shape = shape param, scale = scale param))`

    + For $\;T \sim Exponential(\lambda)$<br>$H(t)=$ `-log(1 - pexp(q = quantile, rate = rate parameter))`

    + For $\;T \sim Normal(\mu,\sigma)$<br>$H(t)=$ `-log(1 - pnorm(q = quantile, mean = mean, sd = standard deviation))`

    + For $\;T \sim Lognormal(\mu,\sigma)$<br>$H(t)=$ `-log(1 - plnorm(q = quantile, meanlog = log(mean), sdlog = log(stdev)))`

    + For $T \sim Gamma(\kappa,\beta)$<br>$H(t)=$ `-log(1-pgamma(q = quantile, shape = shape param, scale = scale param))`
