powered by
Creates observationInfluence object to be plotted.
modelPerformance(object, scores = c("MAE", "MSE", "REC", "RROC"), new.score = NULL)
An object of class ModelAudit.
Vector of score names to be plotted.
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.
# 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