| surv | R Documentation |
Generic method for obtaining the survival function of an object.
surv(x, ...)
x |
The object to obtain the survival function of. |
... |
Additional arguments to pass. |
A function computing the survival function S(t) = P(X > t).
x <- exponential(1)
S <- surv(x)
S(0) # 1 (survival at time 0)
S(1) # exp(-1), approximately 0.368
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.