Hi Experts,
When I tried to use Logistics Regression in Alteryx, there is a result to show ROC Chart.
Since I require to get AUC (Area Under Curve) to know the model performance, may I know how to get the AUC value in the ROC Chart?
In R, it's very simple to get that value. Below please find the R Code and attached graph for your reference:
mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv")
mylogit <- glm(admit ~ gre, data = mydata, family = "binomial")
summary(mylogit)
prob=predict(mylogit,type=c("response"))
mydata$prob=prob
require(pROC)
g<-roc(admit ~ prob,data=mydata)
plot(g,print.auc=T)
Appreciate much for your advice! Many thanks.
Regards,
Derek