This function acts as a front end to dlmomco
and plmomco
to compute the hazard function
To help with intuitive understanding of what
Ugarte and others (2008) continue by stating that
hlmomco(x,para)
Hazard rate for x
.
A real value vector.
The parameters from lmom2par
or similar.
W.H. Asquith
Ugarte, M.D., Militino, A.F., and Arnholt, A.T., 2008, Probability and statistics with R: CRC Press, Boca Raton, FL.
plmomco
, dlmomco
my.lambda <- 100
para <- vec2par(c(0,my.lambda), type="exp")
x <- seq(40:60)
hlmomco(x,para) # returns vector of 0.01
# because the exponential distribution has a constant
# failure rate equal to 1/scale or 1/100 as in this example.
Run the code above in your browser using DataLab