https://cran.r-project.org/web/packages/flexhaz/index.html
CRAN: Package flexhaz
Flexible framework for specifying survival distributions through their hazard (failure rate) functions. Define arbitrary time-varying hazard functions to model...
cranpackage