B.1 Relevant distributions in R

In R, there are several families of distributions available. The ones that are relevant in survival analysis are characterized by having positive support. For each family of distributions, four functions are available; a density function (name prefix d), a cumulative distribution function (name prefix p), a quantile function (name prefix q), and a random number generator (name prefix r }). In the package eha, the two functions with prefix h and H are added for some distributions. For instance, for the Weibull distribution there are hweibull and Hweibull, where the first is the hazard function and the second is the cumulative hazards function.