Learn R Programming

auditor (version 0.3.0)

modelPerformance: Create Model Performance Explainer

Description

Creates observationInfluence object to be plotted.

Usage

modelPerformance(object, scores = c("MAE", "MSE", "REC", "RROC"),
  new.score = NULL)

Arguments

object

An object of class ModelAudit.

scores

Vector of score names to be plotted.

new.score

A named list of functions that take one argument: object of class ModelAudit and return a numeric value. The measure calculated by the function should have the property that lower score value indicates better model.

...

other parameters.

Examples

Run this code
# NOT RUN {
library(MASS)
model.glm <- glm(Postwt ~ Prewt + Treat + offset(Prewt), family = gaussian, data = anorexia)
audit.glm <- audit(model.glm)

mp.glm <- modelPerformance(audit.glm)


# }

Run the code above in your browser using DataLab