Hweibull {eha}R Documentation

Cumulative hazard function for the Weibull distribution

Description

Calculates the cumulative hazard function of a Weibull distribution

Usage

Hweibull(x, shape, scale = 1, log = FALSE)

Arguments

x vector of quantiles.
shape shape parameter.
scale scale parameter, defaulting to 1.
log logical: if TRUE, the answer is given as log(H).

Details

See pweibull

Value

Gives the cumulative hazard function at x.

Author(s)

Göran broström

Examples

##---- 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
  }

[Package eha version 0.96-4 Index]