rocplot: ROC Plot for a logistic regression model

Description Usage Arguments Value Author(s) Examples

View source: R/rocplot.R

Description

Plots the ROC Curve

Usage

1
rocplot(logistic.model,diag=TRUE,pred.prob.labels=FALSE,prob.label.digits=3,AUC=TRUE)

Arguments

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

Value

a ggplot object

Author(s)

Ian Fellows adapted from the lroc function by Virasakdi Chongsuvivatwong

Examples

1
2
3
model.glm <- glm(formula=income>5930.5 ~ education + women + type,
	family=binomial(),data=Prestige,na.action=na.omit)
rocplot(model.glm)

Example output

Loading required package: ggplot2
Loading required package: JGR
Loading required package: rJava
Loading required package: JavaGD
OpenJDK 64-Bit Server VM warning: Can't detect primordial thread stack location - find_vma failed

Please type JGR() to launch console. Platform specific launchers (.exe and .app) can also be obtained at http://www.rforge.net/JGR/files/.


Loading required package: car
Loading required package: carData
Loading required package: MASS
Registered S3 methods overwritten by 'lme4':
  method                          from
  cooks.distance.influence.merMod car 
  influence.merMod                car 
  dfbeta.influence.merMod         car 
  dfbetas.influence.merMod        car 


Note Non-JGR console detected:
	Deducer is best used from within JGR (http://jgr.markushelbig.org/).
	To Bring up GUI dialogs, type deducer().

Deducer documentation built on May 2, 2019, 8:35 a.m.

Related to rocplot in Deducer...