Area Under Curve (AUC) for Receiver Operating Characteristic.

scoreROC(object)

Arguments

object

An object of class ModelAudit.

Value

an object of class scoreAudit

See also

Examples

library(mlbench) data("PimaIndiansDiabetes") Pima <- PimaIndiansDiabetes Pima$diabetes <- ifelse(Pima$diabetes == "pos", 1, 0) glm_model <- glm(diabetes~., family=binomial, data=Pima) glm_au <- audit(glm_model, data = Pima, y = Pima$diabetes) scoreROC(glm_au)
#> $name #> [1] "ROC" #> #> $score #> $score[[1]] #> [1] 0.8394254 #> #> #> attr(,"class") #> [1] "scoreAudit"