ROC {BranchGLM} | R Documentation |
Creates an ROC curve.
ROC(object, ...)
## S3 method for class 'numeric'
ROC(object, y, ...)
## S3 method for class 'BranchGLM'
ROC(object, ...)
object |
a |
... |
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. |
A BranchGLMROC
object which can be plotted with plot()
. The AUC can also
be calculated using AUC()
.
Data <- ToothGrowth
Fit <- BranchGLM(supp ~ ., data = Data, family = "binomial", link = "logit")
MyROC <- ROC(Fit)
plot(MyROC)