Learn R Programming

auditor (version 0.3.0)

modelEvaluation: Create Model Evaluation explainer

Description

Creates modelEvaluation object to be plotted. Model evaluation concentrates on classification models.

Usage

modelEvaluation(object, variable = NULL)

Arguments

object

An object of class ModelAudit.

variable

Optional. Name of variable to order residuals. If value is NULL data order is taken. If value is "Predicted response" or "Fitted values" then data is ordered by fitted values. If value is "Observed response" the data is ordered by a vector of actual response (y parameter passed to the audit function).

Examples

Run this code
# NOT RUN {
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)

modelEvaluation(glm_au)


# }

Run the code above in your browser using DataLab