The problem about ROC curve and threshold in R

107 Views Asked by At

I have some data about the occurrence of turtles in different temperature and I use glm() to calculate the predicted probability of occurrence in each temperature. Then I plot ROC curve and max kappa. What does max kappa mean? What does the x axis of max kappa plot mean? Is there any relationship between these two figures?

> glm_eval<-evaluate(predict_presence,predict_absence,model=glm_model)
> max_kappa <- plogis(threshold(glm_eval, stat='kappa'))
> par(mfrow=c(1,2)) 
> plot(glm_eval, 'ROC', type='l')  
> plot(glm_eval,'kappa', type='l',xlim=c(-30,5))  
> abline(v=max_kappa, lty=2,col='blue')

enter image description here

0

There are 0 best solutions below