rocplot | R Documentation |
Plots the ROC Curve
rocplot(logistic.model,diag=TRUE,pred.prob.labels=FALSE,prob.label.digits=3,AUC=TRUE)
logistic.model |
a glm object with binomial link function. |
diag |
a logical value indicating whether a diagonal reference line should be displayed. |
pred.prob.labels |
a logical value indicating whether the predictive probabilities should be displayed |
prob.label.digits |
The number of digits of the predictive probabilities to be displayed. |
AUC |
a logical value indicating whether the estimated area under the curve should be displayed |
a ggplot object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.