| model_betas | R Documentation |
Inspect insuRglm model coefficients
model_betas(setup, triangles = FALSE)
setup |
Setup object. Created at the start of the workflow. Usually piped in from previous step. |
triangles |
Boolean scalar. Show beta coefficient differences instead. These are expressed using standard error percentage. |
Either dataframe containing model coefficients or matrix-like dataframe containing beta coefficient differences
require(dplyr) # for the pipe operator
data('sev_train')
setup <- setup(
data_train = sev_train,
target = 'sev',
weight = 'numclaims',
family = 'gamma',
keep_cols = c('pol_nbr', 'exposure', 'premium')
)
modeling <- setup %>%
factor_add(pol_yr) %>%
factor_add(agecat) %>%
model_fit()
modeling %>%
model_betas()
modeling %>%
model_betas(triangles = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.