Learn R Programming

smallstuff (version 1.0.3)

ROCcurve: Plot the ROC curve

Description

Plot the ROC curve for logistic regression, LDA, or QDA models.

Usage

ROCcurve(mod, nw = NULL)

Value

A plot with the ROC curve will be produced, nothing is returned.

Arguments

mod

A logistic regression, LDA, or QDA model

nw

A dataset for which a testing ROC curve should be plotted using the model in mod. Note that it must contain the predictors as well as the responses. If this argument is NULL (the default) the training ROC curve will be plotted.

Examples

Run this code
gmod=glm(state~.,binomial,Puromycin)
ROCcurve(gmod)

Run the code above in your browser using DataLab