Learn R Programming

auditor (version 0.3.0)

score: Model Scores computations

Description

This function provides several scores for model validation and performance assessment. Scores can be also used to compare models.

Usage

score(object, type = "MSE", ...)

Arguments

object

Object An object of class modelAudit.

type

The type of score to be calculated. Possible values: 'Cook', 'DW', 'Peak', 'HalfNormal', 'MAE', 'MSE', 'REC', 'RMSE', 'ROC', 'RROC', 'Runs' (for detailed description see functions in see also section).

...

Other arguments dependent on the type of score.

Value

an object of class scoreAudit, except Cooks distance, where numeric vector is returned

See Also

scoreCooksDistance, scoreDW, scorePeak, scoreHalfNormal, scoreMAE, scoreMSE, scoreREC, scoreROC, scoreRROC, scoreRuns

Examples

Run this code
# NOT RUN {
library(car)
lm_model <- lm(prestige~education + women + income, data = Prestige)
lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige)
score(lm_au, type = 'Runs')

# }

Run the code above in your browser using DataLab