View source: R/model_performance.R
model_performance | R Documentation |
Compute indices of model performance for (one or more) GLMs.
model_performance(...)
... |
One or more objects of class |
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()
.
data frame
Martin Haringa
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.