chi_squared object.R/chi_squared.R
surv.chi_squared.RdMethod for obtaining the survival function of a chi_squared object.
# S3 method for class 'chi_squared'
surv(x, ...)A function that computes S(t) = P(X > t)
x <- chi_squared(5)
S <- surv(x)
S(5)
#> [1] 0.4158802