Access a distribution's hazard function.

eval_hazard(object, at)

get_hazard(object)

enframe_hazard(object, at, arg_name = ".arg", fn_name = ".hazard")

## Arguments

object Distribution object. Vector of values to evaluate the cdf at. Name of the column containing the function arguments, in the output data frame of enframe_. Name of the column containing the function evaluations, in the output data frame of enframe_.

## Value

A vector of the evaluated hazard, in the case of eval_; a data frame with both the argument and function evaluations, in the case of enframe_; or a vectorized function representing the hazard, in the case of get_.

Other distributional representations: eval_cdf(), eval_density(), eval_pmf(), eval_quantile(), eval_survival(), get_chf()
d <- dst_unif(0, 4)
hazard(0:4)#> [1] 0.2500000 0.3333333 0.5000000 1.0000000       Inf