Returns a function that computes \(S(t) = P(X > t)\) for the Weibull distribution.
# S3 method for class 'weibull_dist'
surv(x, ...)A function function(t, log.p = FALSE, ...) returning the
survival probability (or log-survival probability) at t.
x <- weibull_dist(shape = 2, scale = 3)
S <- surv(x)
S(1)
#> [1] 0.8948393
S(3)
#> [1] 0.3678794