R/lognormal.R
surv.lognormal.Rd
Returns a function that computes S(t)=P(X>t) for the log-normal distribution.
# S3 method for class 'lognormal' surv(x, ...)
A lognormal object.
lognormal
Additional arguments (not used).
A function function(t, log.p = FALSE, ...) returning the survival probability (or log-survival probability) at t.
function(t, log.p = FALSE, ...)
t
x <- lognormal(0, 1) S <- surv(x) S(1) #> [1] 0.5 S(2) #> [1] 0.2441086