Learn R Programming

insurancerating (version 0.6.3)

model_performance: Performance of fitted GLMs

Description

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

Usage

model_performance(...)

Arguments

...

One or more objects of class glm.

Value

data frame

Details

The following indices are computed:

  • AIC Akaike's Information Criterion, see AIC

  • BIC Bayesian Information Criterion, see BIC

  • RMSE Root mean squared error, rmse

Adopted from performance::model_performance().

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab