R/survival.R

Defines functions survival

survival <-
function(y, obs) {
    n <- length(y)
    estimate <- (sum(y > obs) + 0.5*sum(y == obs))/n
}

Try the ROCnReg package in your browser

Any scripts or data that you put into this service are public.

ROCnReg documentation built on Sept. 7, 2020, 5:09 p.m.