powered by
Estimate significance of difference in two AUCs by resampling.
testAUCpair( d, model1Name, model2Name, yName, yTarget = TRUE, ..., na.rm = FALSE, returnScores = FALSE, nrep = 100, parallelCluster = NULL )
AUC pair test
data.frame
character model 1 column name
character model 2 column name
character outcome column name
target to match to y
extra arguments (not used)
logical, if TRUE remove NA values
logical if TRUE return detailed resampledScores
number of re-sample repetition to estimate p value.
(optional) a cluster object created by package parallel or package snow
set.seed(25325) d <- data.frame(x1=c(1,2,3,4,5,6,7,7), x2=1, y=c(FALSE,TRUE,FALSE,FALSE, TRUE,TRUE,FALSE,TRUE)) testAUCpair(d,'x1','x2','y',TRUE)
Run the code above in your browser using DataLab