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:
Akaike's Information Criterion
Bayesian Information Criterion
Root mean squared error
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.