Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

distr6 (version 1.3.0)

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 hX(x)=fXSX where X is the distribution, SX is the survival function and fX is the pdf.

Can only be used after decorating with ExoticStatistics.

See Also

ExoticStatistics and decorate