Compute indices of model performance for (one or more) GLMs.

model_performance(...)

Arguments

...

One or more objects of class glm.

Value

data frame

Details

The following indices are computed:

Adopted from performance::model_performance().

Author

Martin Haringa

Examples

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