Learn R Programming

ProfileLadder (version 0.2.2)

plot.profileLadder: Plotting Development Profiles

Description

The function provides a graphical representation of the functional profiles estimated by the PARALLAX, REACT, or MACRAME algorithm (see Maciak, Mizera, and Pesta (2022) for further details). The function takes an object of the class profileLadder which is the output of the parallelReserve() function or the mcReserve() function. Alternatively, the function can be also applied to visualise the run-off triangle itself---if the triangle is of the class profileLadder.

Usage

# S3 method for profileLadder
plot(
  x,
  xlab = "Development period",
  ylab = "Cumulative claims",
  main = "",
  default.legend = TRUE,
  ...
)

Value

A graph with the observed functional development profiles from the input run-off triangle, the estimated/predicted functional segments (i.e., functional profile completion provided by the corresponding estimation method---PARALLAX, REACT, or MACRAME) the and the true future profiles (if these are available)

Arguments

x

an object of the class profileLadder (output form parallelReserve(), mcReserve(), or as.profileLadder()

xlab

label for the x axis

ylab

label for the y axis

main

title of the plot

default.legend

logical to indicate whether a default plot legend (utilizing the information from the R class profileLadder) should be provided (DEFAULT)

...

other graphical parameters to plot

See Also

as.profileLadder(), parallelReserve(), mcReserve()

Examples

Run this code
## completed run-off triangle with the 'unknown' (future) payments
print(triangle <- GFCIB$bodilyInjury[1:15, 1:15])
plot(mcReserve(triangle))

## completed run-off triangle with unknown future
print(observed(triangle))
plot(mcReserve(observed(triangle)))

## the run-off triangle with future payments without MACRAME completion
plot(as.profileLadder(triangle))



Run the code above in your browser using DataLab