Learn R Programming

ChainLadder (version 0.1.7)

plot-MultiChainLadder: Methods for Function plot

Description

Methods for function plot to produce different diagonostic plots for an object of class "MultiChainLadder".

Usage

## S3 method for class 'MultiChainLadder,missing':
plot(x, y, which.plot=1:4, 
						which.triangle=NULL, 
						main=NULL,  
						portfolio=NULL,
						lowess=TRUE, 
						legend.cex=0.75,...)

Arguments

x
An object of class "MultiChainLadder".
y
"missing"
which.plot
This specifies which type of plot is desired. Its range is 1:5, but defaults to 1:4. "1" is the barplot of observed losses and predicted IBNR stacked and MSE predictions as error bars; "2" is a trajectory plot of the development pattern; "3" is the resid
which.triangle
This specifies which triangles are to be plotted. Default value is NULL, where all triangles plus the portfolio result will be plotted.
main
It should be a list of titles for each plot. If not supplied, use default titles.
portfolio
It specifies which triangles are to be summed as the portfolio, to be passed on to summary.
lowess
Logical. If TRUE, smoothing lines will be added on residual plots.
legend.cex
plotting parameter to be passes on to cex in legend if which.plot=1.
...
optional graphical arguments.

See Also

See also MultiChainLadder

Examples

Run this code
data(liab)
fit.liab <- MultiChainLadder(liab)

# generate diagonostic plots
par(mfcol=(c(3,2)))
plot(fit.liab,which.plot=1:2)

par(mfrow=(c(2,2)))
plot(fit.liab,which.plot=3:4)

plot(fit.liab,which.triangle=1,which.plot=5)
graphics.off()

Run the code above in your browser using DataLab