| Hweibull {eha} | R Documentation |
Calculates the cumulative hazard function of a Weibull distribution
Hweibull(x, shape, scale = 1, log = FALSE)
x |
vector of quantiles. |
shape |
shape parameter. |
scale |
scale parameter, defaulting to 1. |
log |
logical: if TRUE, the answer is given as log(H). |
See pweibull
Gives the cumulative hazard function at x.
Göran broström
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function(x, shape, scale = 1, log = FALSE){
res <- (x / scale)^shape
if (log) res <- logb(res, base = exp(1))
res
}