Learn R Programming

insurancerating (version 0.7.5)

Analytic Insurance Rating Techniques

Description

Functions to build, evaluate, and visualize insurance rating models. It simplifies the process of modeling premiums, and allows to analyze insurance risk factors effectively. The package employs a data-driven strategy for constructing insurance tariff classes, drawing on the work of Antonio and Valdez (2012) .

Copy Link

Version

Install

install.packages('insurancerating')

Monthly Downloads

472

Version

0.7.5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Haringa

Last Published

October 9th, 2024

Functions in insurancerating (0.7.5)

fit_truncated_dist

Fit a distribution to truncated severity (loss) data
model_data

Get model data
fit_gam

Generalized additive model
fisher

Fisher's natural breaks classification
model_performance

Performance of fitted GLMs
autoplot.univariate

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

Include reference group in regression output
rmse

Root Mean Squared Error
autoplot.truncated_dist

Automatically create a ggplot for objects obtained from fit_truncated_dist()
period_to_months

Split period to months
biggest_reference

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

Automatically create a ggplot for objects obtained from smooth_coef()
smooth_coef

Smooth coefficients in the model
summary.reduce

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

Create a histogram with outlier bins
rgammat

Generate data from truncated gamma distribution
rlnormt

Generate data from truncated lognormal distribution
construct_tariff_classes

Construct insurance tariff classes
update_glm

Refitting Generalized Linear Models
construct_model_points

Construct model points from Generalized Linear Model
rows_per_date

Find active rows per date
bootstrap_rmse

Bootstrapped RMSE
refit_glm

Refitting Generalized Linear Models
restrict_coef

Restrict coefficients in the model
check_overdispersion

Check overdispersion of Poisson GLM
univariate

Univariate analysis for discrete risk factors
reduce

Reduce portfolio by merging redundant date ranges
update_formula_add

Create new offset-term and new formula
check_residuals

Check model residuals
reexports

Objects exported from other packages
autoplot.riskfactor

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

Add predictions to a data frame
autoplot.bootstrap_rmse

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

Automatically create a ggplot for objects obtained from restrict_coef()
MTPL2

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

Automatically create a ggplot for objects obtained from construct_tariff_classes()
MTPL

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

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

Automatically create a ggplot for objects obtained from check_residuals()