powered by
Plots the ROC Curve
rocplot(logistic.model,diag=TRUE,pred.prob.labels=FALSE,prob.label.digits=3,AUC=TRUE)
a ggplot object
a glm object with binomial link function.
a logical value indicating whether a diagonal reference line should be displayed.
a logical value indicating whether the predictive probabilities should be displayed
The number of digits of the predictive probabilities to be displayed.
a logical value indicating whether the estimated area under the curve should be displayed
Ian Fellows adapted from the lroc function by Virasakdi Chongsuvivatwong
model.glm <- glm(formula=income>5930.5 ~ education + women + type, family=binomial(),data=Prestige,na.action=na.omit) rocplot(model.glm)
Run the code above in your browser using DataLab