i'm doing a logistic regression classifier and i want to plot ROC curve. My code at the end, when doing prediction and trying to plot Roc is this:
library('ROCR')
pred <- predict(logMod, testing, type = "prob")
pred <- prediction(pred, testing$RainTomorrow)
evalL <- performance(pred, "acc")
plot(evalL)
My classifier is: logistic regression code:
logMod <- glm(RainTomorrow ~ ., data = training, family = 'binomial')
summary(logMod)
i want to set type = 'prob' in order to plot ROC but when i do so i get the error: Error in match.arg(type): 'arg' should be one of "link", "response", "terms"
Can someone help me? Thanks in advance