hweibull {eha}R Documentation

The hazard function of a Weibull distribution

Description

Calculates the hazard function of a Weibull distribution.

Usage

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

Arguments

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.

Details

See dweibull.

Value

The hazard function, evaluated at x.

Author(s)

Göran Broström

See Also

pweibull

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){
    if (shape <= 0 || scale <= 0)
      error("scale and shape must be positive")  
    (x / scale)^(shape - 1) / scale
  }

[Package eha version 0.96-4 Index]