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

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

Examples

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')
#> $name #> [1] "Runs" #> #> $score #> [1] -0.5933797 #> #> $pValue #> [1] 0.5529271 #> #> attr(,"class") #> [1] "scoreAudit"