Learn R Programming

ChainLadder

ChainLadder is an R package providing methods and models which are typically used in insurance claims reserving, including:

  • Mack chain-ladder, Munich chain-ladder and Bootstrap models
  • General multivariate chain ladder-models
  • Loss development factor fitting and Cape Cod models
  • Generalized linear models
  • One year claims development result functions
  • Utility functions to:
    • convert tables into triangles and triangles into tables
    • convert cumulative into incremental and incremental into cumulative triangles
    • visualise triangles

For a Python claims reserving package visit chainladder-python.

Installation

You can install the stable version from CRAN:

install.packages('ChainLadder', dependencies = TRUE)

You can also install the package via the Github repository:

# install.package("remotes") # In case you have not installed it.
remotes::install_github("mages/ChainLadder", dependencies = TRUE)

Get started

library(ChainLadder)
?ChainLadder
demo(ChainLadder)

See the ChainLadder package vignette for more details.

Citation

To cite package 'ChainLadder' in publications see the output of:

citation(package="ChainLadder")

See also:

Markus Gesmann. Claims Reserving and IBNR. Computational Actuarial Science with R. 2014. Chapman and Hall/CRC

License

This package is free and open source software, licensed under GPL.

ChainLadder documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Copy Link

Version

Install

install.packages('ChainLadder')

Monthly Downloads

4,621

Version

0.2.20

License

GPL (>= 2)

Maintainer

Markus Gesmann

Last Published

February 6th, 2025

Functions in ChainLadder (0.2.20)

AutoBI

Run off triangles of accumulated claim data
MedMal

Run off triangles of accumulated claim data
Mortgage

Run off triangle of accumulated claims data
Join2Fits

Join Two Fitted MultiChainLadder Models
JoinFitMse

Join Model Fit and Mse Estimation
M3IR5

Run off triangle of claims data
LRfunction

Calculate the Link Ratio Function
MW2008

Run-off claims triangle
MCLpaid

Run off triangles of accumulated paid and incurred claims data.
MackChainLadder

Mack Chain-Ladder Model
MW2014

Run-off claims triangle
PaidIncurredChain

PaidIncurredChain
MunichChainLadder

Munich-chain-ladder Model
MultiChainLadderMse-class

Class "MultiChainLadderMse"
NullNum-class

Class "NullNum", "NullChar" and "NullList"
QuantileIFRS17

Quantile estimation for the IFRS 17 Risk Adjustment
Mse-methods

Methods for Generic Function Mse
MultiChainLadder-class

Class "MultiChainLadder" of Multivariate Chain-Ladder Results
MultiChainLadderSummary-class

Class "MultiChainLadderSummary"
MultiChainLadderFit-class

Class "MultiChainLadderFit", "MCLFit" and "GMCLFit"
MultiChainLadder

Multivariate Chain-Ladder Models
as.LongTriangle

Convert Triangle from wide to long
USAA triangle

Example paid and incurred triangle data from CAS web site.
auto

Run off triangle of accumulated claim data
ata

Calculate Age-to-Age Factors
chainladder

Estimate age-to-age factors
checkTriangleInflation

Check Y-o-Y Triangle Inflation Rates
Table65

Functions to Reproduce Clark's Tables
liab

Run off triangle of accumulated claim data
RAA

Run off triangle of accumulated claims data
coef.ChainLadder

Extract residuals of a ChainLadder model
plot-MultiChainLadder

Methods for Function plot
cyEffTest

Testing for Calendar Year Effect
triangle S3 Methods

Generic functions for triangles
UKMotor

UK motor claims triangle
glmReserve

GLM-based Reserving Model
inflateTriangle

Inflate a Triangle based on an Inflation Rate
getLatestCumulative

Triangle information for most recent calendar period.
dfCorTest

Testing for Correlations between Subsequent Development Factors
plot.BootChainLadder

Plot method for a BootChainLadder object
plot.dfCorTest

Plot method for a dfCorTest object
print.ata

Print Age-to-Age factors
plot.MunichChainLadder

Plot method for a MunichChainLadder object
print.clark

Print results of Clark methods
print.cyEffTest

Print function for a cyEffTest object
residCov

Generic function for residCov and residCor
residuals.MackChainLadder

Extract residuals of a MackChainLadder model
quantile.MackChainLadder

quantile function for Mack-chain-ladder
print.checkTriangleInflation

Print function for a checkTriangleInflation object
summary-methods

Methods for Function summary
predict.TriangleModel

Prediction of a claims triangle
triangles-class

S4 Class "triangles"
plot.cyEffTest

Plot method for a cyEffTest object
plot.checkTriangleInflation

Plot method for a checkTriangleInflation object
plot.MackChainLadder

Plot method for a MackChainLadder object
plot.clark

Plot Clark method residuals
vcov.clark

Covariance Matrix of Parameter Estimates -- Clark's methods
summary.ata

Summary method for object of class 'ata'
summary.MunichChainLadder

Summary and print function for Munich-chain-ladder
summary.BootChainLadder

Methods for BootChainLadder objects
summary.checkTriangleInflation

Summary function for a checkTriangleInflation object
qpaid

Quarterly run off triangle of accumulated claims data
print.dfCorTest

Print function for a dfCorTest object
summary.clark

Summary methods for Clark objects
tweedieReserve methods

Reserve Risk Capital Report
summary.MackChainLadder

Summary and print function for Mack-chain-ladder
Cumulative and incremental triangles

Cumulative and incremental triangles
tweedieReserve

Tweedie Stochastic Reserving Model
summary.dfCorTest

Summary function for a dfCorTest object
summary.cyEffTest

Summary function for a cyEffTest object
CDR

One year claims development result
BootChainLadder

Bootstrap-Chain-Ladder Model
ChainLadder-package

Methods and Models for Claims Reserving
BS.paid.adj

Berquist-Sherman Paid Claim Development Adjustment
ClarkLDF

Clark LDF method
ABC

Run off triangle of accumulated claims data
GenIns

Run off triangle of claims data.
CLFMdelta

Find "selection consistent" values of delta
ClarkCapeCod

Clark Cape Cod method