Last chance! 50% off unlimited learning
Sale ends in
This function provides several scores for model validation and performance assessment. Scores can be also used to compare models.
score(object, type = "MSE", ...)
Object An object of class modelAudit.
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.
an object of class scoreAudit, except Cooks distance, where numeric vector is returned
scoreCooksDistance, scoreDW, scorePeak, scoreHalfNormal, scoreMAE, scoreMSE, scoreREC, scoreROC, scoreRROC, scoreRuns
# 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