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
# 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')
# }