Learn R Programming

DiscreteInverseWeibull (version 1.0.2)

hrdiweibull: Hazard rate function

Description

Hazard rate function for the discrete inverse Weibull distribution

Usage

hrdiweibull(x, q, beta)

Arguments

x
a vector of values
q
the value of the $q$ parameter
beta
the value of the $\beta$ parameter

Value

the hazard rate function computed on the x values

Details

The hazard rate function is defined as $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

Run this code
q<-0.5
beta<-2.5
x<-1:10
hrdiweibull(x, q, beta)

Run the code above in your browser using DataLab