R/roc.R

Defines functions roc

Documented in roc

roc <-
function(probs,true,cutoffs){  
    if(cutoffs[2] >= cutoffs[1]){
      print("ERROR: cut-offs needs to be a DECREASING vector")
      return(NULL)
    } else {
    rocs <- sapply(cutoffs, .rocaux, probs=probs, true=true)
    return(rocs)
    }
}

Try the GRridge package in your browser

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

GRridge documentation built on Nov. 8, 2020, 5:47 p.m.