Hello,

I was wondering if anyone could shed light on an issue I am experiencing with the package cvAUC (link provided below).

I wish to get the function cvAUC to work, yet I am not getting the expected results. Maybe the issue is caused by the format of my data. What I have is a dataframe with a column for the Dependent Variable, one column for the Predicted Probabilities (predicted on the basis of the model I have previously fitted). 

From the help documentation, the function's arguments are:

cvAUC(predictions, labels, label.ordering = NULL, folds = NULL)

Assuming that my dataframe is named 'mydata', the way I am using the function is:

cvAUC(mydata$pred.prob, mydata$DV)

I seem to get the AUC for just one fold. Am I missing anything here? Is the issue caused by the way in which the DV is coded (0=absence, 1=presence)?

Thank you for any guidance on the subject.

GmA

https://cran.r-project.org/web/packages/cvAUC/cvAUC.pdf

More Gianmarco Alberti's questions See All
Similar questions and discussions