Method for obtaining the hazard function of a chi_squared object.

# S3 method for class 'chi_squared'
hazard(x, ...)

Arguments

x

The chi_squared object

...

Additional arguments (not used)

Value

A function that computes h(t) = f(t) / S(t)

Examples

x <- chi_squared(5)
h <- hazard(x)
h(5)
#> [1] 0.2934536