The hazard function of a probability distribution is the risk of instantaneous event at a point x.

hazard(object, x1, log = FALSE)

Arguments

object

Distribution.

x1

Point to evaluate the hazard function at.

log

logical, if TRUE then the (natural) logarithm of the hazard function is returned.

Value

Hazard function as a numeric, natural logarithm returned if log is TRUE.

Details

The hazard function is defined analytically by $$h_X(x) = \frac{f_X}{S_X}$$ where X is the distribution, \(S_X\) is the survival function and \(f_X\) is the pdf.

Can only be used after decorating with ExoticStatistics.

R6 Usage

$hazard(x1, log = FALSE)

See also