50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


distr6 (version 1.3.7)

survival: Survival Function

Description

The survival function of a probability distribution is the probability of surviving after a point x.

Usage

survival(object, x1, log = FALSE)

Arguments

object

Distribution.

x1

Point to evaluate the survival function at.

log

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

Value

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

R6 Usage

$survival(x1, log = FALSE)

Details

The survival function is defined by SX(x)=P(Xx)=1FX(x)=xfX(x)dx where X is the distribution, SX is the survival function, FX is the cdf and fX is the pdf.

Can only be used after decorating with ExoticStatistics.

See Also

ExoticStatistics and decorate