ahrdiweibull function

Alternative hazard rate function

Alternative hazard rate function

Alternative hazard rate function for the discrete inverse Weibull distribution

ahrdiweibull(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 value of the alternative hazard rate function in the x values

Details

The alternative hazard rate function is defined as h(x)=log(P(X>x1)/P(X>x))=log[(1q(x1)β)/(1qxβ)]h(x)=\log(P(X>x-1)/P(X>x))=\log[(1-q^{(x-1)^{-\beta}})/(1-q^{x^{-\beta}})]

See Also

hrdiweibull

Examples

q<-0.5 beta<-2 x<-1:10 y<-ahrdiweibull(x, q, beta) y plot(x,y,ylab="alt.hazard rate")
  • Maintainer: Alessandro Barbiero
  • License: GPL
  • Last published: 2016-05-01

Useful links