Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

qpaid

Quarterly run off triangle of accumulated claims data


Description

Sample data to demonstrate how to work with triangles with a higher development period frequency than origin period frequency

Usage

data(qpaid); data(qincurred)

Format

A matrix with 12 accident years and 45 development quarters of claims costs.

Source

Made up data for testing purpose

Examples

dim(qpaid)
dim(qincurred)
op=par(mfrow=c(1,2))
ymax <- max(c(qpaid,qincurred),na.rm=TRUE)*1.05
matplot(t(qpaid), type="l", main="Paid development", 
		  xlab="Dev. quarter", ylab="$", ylim=c(0,ymax))
matplot(t(qincurred), type="l", main="Incurred development", 
		      xlab="Dev. quarter", ylab="$", ylim=c(0,ymax))
par(op)
## MackChainLadder expects a quadratic matrix so let's expand 
## the triangle to a quarterly origin period.
n <- ncol(qpaid)
Paid <- matrix(NA, n, n)
Paid[seq(1,n,4),] <- qpaid
M <- MackChainLadder(Paid)
plot(M)

# We expand the incurred triangle in the same way 
Incurred <- matrix(NA, n, n)
Incurred[seq(1,n,4),] <- qincurred

# With the expanded triangles we can apply MunichChainLadder
MunichChainLadder(Paid, Incurred)

# In the same way we can apply BootChainLadder
# We reduce the size of bootstrap replicates R 
# from the default of 999 to 99 purely to reduce run time.
BootChainLadder(Paid, R=99)

ChainLadder

Statistical Methods and Models for Claims Reserving in General Insurance

v0.2.12
GPL (>= 2)
Authors
Markus Gesmann [aut, cre], Daniel Murphy [aut], Yanwei (Wayne) Zhang [aut], Alessandro Carrato [aut], Giuseppe Crupi [ctb], Christophe Dutang [ctb], Arnaud Lacoume [ctb], Arthur Charpentier [ctb], Mario Wuthrich [aut], Fabio Concina [aut], Eric Dal Moro [aut], Yuriy Krvavych [ctb], Vincent Goulet [ctb], Marco De Virgilis [ctb]
Initial release
2021-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.