R/compute.empirical.AUC.R

Defines functions compute.empirical.AUC

compute.empirical.AUC <-
function(X,Y) {	
	comp <- outer(Y, X, "-")
	comp <- replace(comp, is.na(comp), 0)
	auc <-(sum(comp<0) + 0.5*sum(comp==0))/length(as.vector(comp))
	
	auc
}

Try the CatPredi package in your browser

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

CatPredi documentation built on Jan. 10, 2022, 5:07 p.m.