powered by
Returns a function that evaluates the Weibull hazard rate \(h(t) = (shape/scale)(t/scale)^{shape-1}\) for \(t > 0\).
# S3 method for weibull_dist hazard(x, ...)
A function function(t, log = FALSE) returning the hazard (or log-hazard) at t.
function(t, log = FALSE)
t
A weibull_dist object.
weibull_dist
Additional arguments (not used).
x <- weibull_dist(shape = 2, scale = 3) h <- hazard(x) h(1) h(3)
Run the code above in your browser using DataLab