ROCcurve: Plot the ROC curve

View source: R/statLearn.R

ROCcurveR 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)

smallstuff documentation built on June 2, 2022, 5:06 p.m.