ROC {BranchGLM}R Documentation

ROC Curve

Description

Creates an ROC curve.

Usage

ROC(object, ...)

## S3 method for class 'numeric'
ROC(object, y, ...)

## S3 method for class 'BranchGLM'
ROC(object, ...)

Arguments

object

a BranchGLM object or a numeric vector.

...

further arguments passed to other methods.

y

observed values, can be a numeric vector of 0s and 1s, a two-level factor vector, or a logical vector.

Value

A BranchGLMROC object which can be plotted with plot(). The AUC can also be calculated using AUC().

Examples

Data <- ToothGrowth
Fit <- BranchGLM(supp ~ ., data = Data, family = "binomial", link = "logit")
MyROC <- ROC(Fit)
plot(MyROC)

[Package BranchGLM version 2.1.5 Index]