Learn R Programming

⚠️There's a newer version (0.7.5) of this package.Take me there.

insurancerating (version 0.7.2)

Analytic Insurance Rating Techniques

Description

Methods for insurance rating. It helps actuaries to implement GLMs within all relevant steps needed to construct a risk premium from raw data. It provides a data driven strategy for the construction of insurance tariff classes. This strategy is based on the work by Antonio and Valdez (2012) . It also provides recipes on how to easily perform one-way, or univariate, analyses on an insurance portfolio. In addition it adds functionality to include reference categories in the levels of the coefficients in the output of a generalized linear regression analysis.

Copy Link

Version

Install

install.packages('insurancerating')

Monthly Downloads

417

Version

0.7.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Haringa

Last Published

December 20th, 2022

Functions in insurancerating (0.7.2)

check_residuals

Check model residuals
check_overdispersion

Check overdispersion of Poisson GLM
construct_tariff_classes

Construct insurance tariff classes
construct_model_points

Construct model points from Generalized Linear Model
bootstrap_rmse

Bootstrapped RMSE
fit_gam

Generalized additive model
fisher

Fisher's natural breaks classification
biggest_reference

Set reference group to the group with largest exposure
autoplot.truncated_dist

Automatically create a ggplot for objects obtained from fit_truncated_dist()
autoplot.univariate

Automatically create a ggplot for objects obtained from univariate()
refit_glm

Refitting Generalized Linear Models
model_data

Get model data
fit_truncated_dist

Fit a distribution to truncated severity (loss) data
rating_factors1

Include reference group in regression output
histbin

Create a histogram with outlier bins
model_performance

Performance of fitted GLMs
period_to_months

Split period to months
reexports

Objects exported from other packages
rating_factors

Include reference group in regression output
reduce

Reduce portfolio by merging redundant date ranges
rows_per_date

Find active rows per date
summary.reduce

Automatically create a summary for objects obtained from reduce()
rmse

Root Mean Squared Error
rlnormt

Generate data from truncated lognormal distribution
restrict_coef

Restrict coefficients in the model
update_formula_add

Create new offset-term and new formula
rgammat

Generate data from truncated gamma distribution
update_glm

Refitting Generalized Linear Models
univariate

Univariate analysis for discrete risk factors
smooth_coef

Smooth coefficients in the model
autoplot.riskfactor

Automatically create a ggplot for objects obtained from rating_factors()
autoplot.restricted

Automatically create a ggplot for objects obtained from restrict_coef()
autoplot.check_residuals

Automatically create a ggplot for objects obtained from check_residuals()
autoplot.smooth

Automatically create a ggplot for objects obtained from smooth_coef()
autoplot.constructtariffclasses

Automatically create a ggplot for objects obtained from construct_tariff_classes()
autoplot.fitgam

Automatically create a ggplot for objects obtained from fit_gam()
autoplot.bootstrap_rmse

Automatically create a ggplot for objects obtained from bootstrap_rmse()
add_prediction

Add predictions to a data frame
MTPL

Characteristics of 30,000 policyholders in a Motor Third Party Liability (MTPL) portfolio.
MTPL2

Characteristics of 3,000 policyholders in a Motor Third Party Liability (MTPL) portfolio.