Learn R Programming

distr6 (version 1.3.1)

cumHazard: Cumulative Hazard Function

Description

The cumulative hazard function of a probability distribution is the anti-derivative of the hazard function.

Usage

cumHazard(object, x1, log = FALSE)

Arguments

object

Distribution.

x1

Point to evaluate the cumulative hazard function at.

log

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

Value

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

R6 Usage

$cumHazard(x1, log = FALSE)

Details

The cumulative hazard function is defined analytically by $$H_X(x) = -log(S_X)$$ where X is the distribution and \(S_X\) is the survival function.

Can only be used after decorating with ExoticStatistics.

See Also

ExoticStatistics and decorate