R/auc.R

Defines functions auc

Documented in auc

auc=function(y,prob,w){
    if(missing(w))
        concordance(y~prob)$concordance
    else concordance(y~prob,weights=w)$concordance
    }

Try the glmnet package in your browser

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

glmnet documentation built on Aug. 22, 2023, 9:12 a.m.