Compute indices of model performance for (one or more) GLMs.
model_performance(...)
One or more objects of class glm
.
data frame
The following indices are computed:
AIC Akaike's Information Criterion, see stats::AIC()
BIC Bayesian Information Criterion, see stats::BIC()
RMSE Root mean squared error, rmse()
Adopted from performance::model_performance()
.
m1 <- glm(nclaims ~ area, offset = log(exposure), family = poisson(),
data = MTPL2)
m2 <- glm(nclaims ~ area, offset = log(exposure), family = poisson(),
data = MTPL2)
model_performance(m1, m2)
#> # Comparison of Model Performance Indices
#>
#> Model | AIC | BIC | RMSE
#> --------------------------------
#> m1 | 2285.73 | 2297.74 | 0.36
#> m2 | 2285.73 | 2297.74 | 0.36