Learn R Programming

distr6 (version 1.3.6)

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 $$S_X(x) = P(X \ge x) = 1 - F_X(x) = \int_x^\infty f_X(x) dx$$ where X is the distribution, \(S_X\) is the survival function, \(F_X\) is the cdf and \(f_X\) is the pdf.

Can only be used after decorating with ExoticStatistics.

See Also

ExoticStatistics and decorate