Description Usage Arguments Details Value Comment Examples
Function getsurvival
calculates survival probability
from an object of class "density" at specified value.
1 | getsurvival(x, cutoff)
|
x |
An object of class "density". |
cutoff |
Value at which survival probability will be calculated. |
The survival function S, of a random variable X is defined by,
S(X=x) = 1 - F(X=x)
where F is the cumulative density function (CDF) of X.
Survival probability.
getsurvival
is used internally in other function(s) of ROCit.
1 2 3 4 | data("Loan")
k <- density(Loan$Income)
# What portion have income over 100,000
getsurvival(k,100000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.