ROC function error “Predictor must be numeric or ordered.”
问题 I am not able to get ROC function to work, I get the error "Predictor must be numeric or ordered". I've looked through other posts, but nothing solves my problem. Any help is highly appreciated. "Get data" flying=dget("https://www.math.ntnu.no/emner/TMA4268/2019v/data/flying.dd") ctrain=flying$ctrain ctest=flying$ctest library(MASS) fly_qda=qda(diabetes~., data=ctrain) #Test error is given below: predict_qda=predict(fly_qda, newdata=ctest, probability=TRUE) table_qda<-table(ctest$diabetes,