ROCcurve {smallstuff}R Documentation

Plot the ROC curve

Description

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

Usage

ROCcurve(mod, nw = NULL)

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.

Value

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

Examples

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

[Package smallstuff version 1.0.3 Index]