Learn R Programming

algebraic.dist (version 0.9.1)

surv.lognormal: Survival function for a log-normal distribution.

Description

Returns a function that computes \(S(t) = P(X > t)\) for the log-normal distribution.

Usage

# S3 method for lognormal
surv(x, ...)

Value

A function function(t, log.p = FALSE, ...) returning the survival probability (or log-survival probability) at t.

Arguments

x

A lognormal object.

...

Additional arguments (not used).

Examples

Run this code
x <- lognormal(0, 1)
S <- surv(x)
S(1)
S(2)

Run the code above in your browser using DataLab