hrdiweibull function

Hazard rate function

Hazard rate function

Hazard rate function for the discrete inverse Weibull distribution

hrdiweibull(x, q, beta)

Arguments

  • x: a vector of values
  • q: the value of the qq parameter
  • beta: the value of the β\beta parameter

Returns

the hazard rate function computed on the x values

Details

The hazard rate function is defined as r(x)=P(X=x)/P(Xx)=(qxβq(x1)β)/(1q(x1)β)r(x)=P(X=x)/P(X\ge x)=(q^{x^{-\beta}}-q^{(x-1)^{-\beta}})/(1-q^{(x-1)^{-\beta}})

See Also

ahrdiweibull

Examples

q<-0.5 beta<-2.5 x<-1:10 hrdiweibull(x, q, beta)
  • Maintainer: Alessandro Barbiero
  • License: GPL
  • Last published: 2016-05-01

Useful links