Method for obtaining the survival function of a chi_squared object.

# S3 method for class 'chi_squared'
surv(x, ...)

Arguments

x

The chi_squared object

...

Additional arguments (not used)

Value

A function that computes S(t) = P(X > t)

Examples

x <- chi_squared(5)
S <- surv(x)
S(5)
#> [1] 0.4158802