chi_squared object.R/chi_squared.R
hazard.chi_squared.RdMethod for obtaining the hazard function of a chi_squared object.
# S3 method for class 'chi_squared'
hazard(x, ...)A function that computes h(t) = f(t) / S(t)
x <- chi_squared(5)
h <- hazard(x)
h(5)
#> [1] 0.2934536