model_performance(model, ...)

performance(model, ...)

Arguments

model

Statistical model.

...

Arguments passed to or from other methods, resp. for compare_performance(), one or multiple model objects (also of different classes).

Value

A data frame (with one row) and one column per "index" (see metrics).

See also

compare_performance() to compare performance of many different models.

Examples

model <- lm(mpg ~ wt + cyl, data = mtcars) model_performance(model)
#> # Indices of model performance #> #> AIC | BIC | R2 | R2_adjusted | RMSE #> ------------------------------------------- #> 156.01 | 161.87 | 0.83 | 0.82 | 2.44
model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial") model_performance(model)
#> # Indices of model performance #> #> AIC | BIC | R2_Tjur | RMSE | LOGLOSS | SCORE_LOG | SCORE_SPHERICAL | PCP #> ----------------------------------------------------------------------------- #> 31.30 | 35.70 | 0.48 | 0.89 | 0.40 | -14.90 | 0.10 | 0.74