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