hweibull
calculates the hazard function of a Weibull distribution,
and Hweibull
calculates the corresponding cumulative hazard function.
hweibull(x, shape, scale = 1, log = FALSE)
x | Vector of quantiles. |
---|---|
shape | The shape parameter. |
scale | The scale parameter, defaults to 1. |
log | logical; if TRUE, the log of the hazard function is given. |
The (cumulative) hazard function, evaluated at x.
See dweibull.
Göran Broström
hweibull(3, 2, 1)#> [1] 6#> [1] 6Hweibull(3, 2, 1)#> [1] 9#> [1] 9