Learn R Programming

distr6 (version 1.3.2)

hazard: Hazard Function

Description

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

Usage

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.

R6 Usage

$hazard(x1, log = FALSE)

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.

See Also

ExoticStatistics and decorate