Learn R Programming

DiscreteInverseWeibull (version 1.0.2)

ahrdiweibull: Alternative hazard rate function

Description

Alternative hazard rate function for the discrete inverse Weibull distribution

Usage

ahrdiweibull(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 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>x-1)/P(X>x))=\log[(1-q^{(x-1)^{-\beta}})/(1-q^{x^{-\beta}})]$

See Also

hrdiweibull

Examples

Run this code
q<-0.5
beta<-2
x<-1:10
y<-ahrdiweibull(x, q, beta)
y
plot(x,y,ylab="alt.hazard rate")

Run the code above in your browser using DataLab