The HazReg
R package implements the following parametric hazard-based regression models for survival data, in the overall and relative survival frameworks.
-
General Hazard (GH) model.
-
Accelerated Failure Time (AFT) model.
-
Proportional Hazards (PH) model.
-
Accelerated Hazards (AH) model.
These models are fitted using the R commands nlminb
and optim
. Thus, the user needs to specify the initial points and to check the convergence of the optimisation step, as usual.
The current version of the HazReg
R package implements the following parametric baseline hazards for the models discussed in the previous section, using the commands GHMLE
and GEHMLE
.
-
Power Generalised Weibull (PGW) distribution.
-
Exponentiated Weibull (EW) distribution.
-
Generalised Gamma (GenGamma) distribuiton.
-
Gamma (Gamma) distribution.
-
Lognormal (LogNormal) distribution.
-
Log-logistic (LogLogistic) distribution.
-
Weibull (Weibull) distribution. (only for AFT, PH, and AH models)
All positive parameters are transformed into the real line using a log
link (reparameterisation).
An Illustrative example and a description of the available models can be found at:
- HazReg: Parametric Hazard-based regression models for survival data [RPubs]
- HazReg: Parametric Hazard-based regression models for survival data [quarto-pub]
- HazReg: Parametric Excess Hazard-based regression models for survival data
- simGH: simulating times to event from a general hazard structure
library(devtools)
install_github("FJRubio67/HazReg")
library(HazReg)
?GHMLE
?GEHMLE
?hpgw
?hggama
?simGH