Package: insurancerating 0.7.5

Martin Haringa

insurancerating: Analytic Insurance Rating Techniques

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) <doi:10.1007/s10182-011-0152-7>.

Authors:Martin Haringa [aut, cre]

insurancerating_0.7.5.tar.gz
insurancerating_0.7.5.tar.gz(r-4.5-noble)insurancerating_0.7.5.tar.gz(r-4.4-noble)
insurancerating_0.7.5.tgz(r-4.4-emscripten)insurancerating_0.7.5.tgz(r-4.3-emscripten)
insurancerating.pdf |insurancerating.html
insurancerating/json (API)
NEWS

# Install 'insurancerating' in R:
install.packages('insurancerating', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mharinga/insurancerating/issues

Pkgdown:https://mharinga.github.io

Datasets:
  • 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.

1.48 score 28 scripts 487 downloads 26 exports 118 dependencies

Last updated 2 months agofrom:3e7b80c5e8. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 09 2024
R-4.5-linuxOKDec 09 2024

Exports:add_predictionautoplotbiggest_referencebootstrap_rmsecheck_overdispersioncheck_residualsconstruct_model_pointsconstruct_tariff_classesfisherfit_gamfit_truncated_disthistbinmodel_datamodel_performanceperiod_to_monthsrating_factorsreducerefit_glmrestrict_coefrgammatrlnormtrmserows_per_datesmooth_coefunivariateupdate_glm

Dependencies:abindapearmaskpassbase64encbootbslibcachemciToolsclassclassIntclicodacodetoolscolorspacecommonmarkcpp11crayoncrosstalkcurldata.tableDHARMadigestdoParalleldplyre1071evaluateevtreefansifarverfastmapfitdistrplusfontawesomeforeachFormulafsgapgap.datasetsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttpuvhttrinsightinumisobanditeratorsjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevallibcoinlifecyclelme4lmtestlubridatemagrittrMASSMatrixmemoisemgcvmimeminqamunsellmvtnormnlmenloptropensslpartykitpatchworkpillarpkgconfigplotlyplyrpromisesproxypurrrqgamR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackrlangrmarkdownrpartsassscalesscamshinysourcetoolsstringistringrsurvivalsystibbletidyrtidyselecttimechangetinytexutf8vctrsviridisLitewithrxfunxtableyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Add predictions to a data frameadd_prediction
Automatically create a ggplot for objects obtained from bootstrap_rmse()autoplot.bootstrap_rmse
Automatically create a ggplot for objects obtained from check_residuals()autoplot.check_residuals
Automatically create a ggplot for objects obtained from construct_tariff_classes()autoplot.constructtariffclasses
Automatically create a ggplot for objects obtained from fit_gam()autoplot.fitgam
Automatically create a ggplot for objects obtained from restrict_coef()autoplot.restricted
Automatically create a ggplot for objects obtained from rating_factors()autoplot.riskfactor
Automatically create a ggplot for objects obtained from smooth_coef()autoplot.smooth
Automatically create a ggplot for objects obtained from fit_truncated_dist()autoplot.truncated_dist
Automatically create a ggplot for objects obtained from univariate()autoplot.univariate
Set reference group to the group with largest exposurebiggest_reference
Bootstrapped RMSEbootstrap_rmse
Check overdispersion of Poisson GLMcheck_overdispersion
Check model residualscheck_residuals
Construct model points from Generalized Linear Modelconstruct_model_points
Construct insurance tariff classesconstruct_tariff_classes
Fisher's natural breaks classificationfisher
Generalized additive modelfit_gam
Fit a distribution to truncated severity (loss) datafit_truncated_dist
Create a histogram with outlier binshistbin
Get model datamodel_data
Performance of fitted GLMsmodel_performance
Characteristics of 30,000 policyholders in a Motor Third Party Liability (MTPL) portfolio.MTPL
Characteristics of 3,000 policyholders in a Motor Third Party Liability (MTPL) portfolio.MTPL2
Split period to monthsperiod_to_months
Include reference group in regression outputrating_factors
Reduce portfolio by merging redundant date rangesreduce
Refitting Generalized Linear Modelsrefit_glm
Restrict coefficients in the modelrestrict_coef
Generate data from truncated gamma distributionrgammat
Generate data from truncated lognormal distributionrlnormt
Root Mean Squared Errorrmse
Find active rows per daterows_per_date
Smooth coefficients in the modelsmooth_coef
Automatically create a summary for objects obtained from reduce()summary.reduce
Univariate analysis for discrete risk factorsunivariate
Refitting Generalized Linear Modelsupdate_glm