auc.mat=function(y,prob,weights=rep(1,nrow(y))){ Weights=as.vector(weights*y) ny=nrow(y) Y=rep(c(0,1),c(ny,ny)) Prob=c(prob,prob) auc(Y,Prob,Weights) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.