Learn R Programming

ProfileLadder (version 0.2.2)

plot.mcSetup: Visualization of the Run-Off Triangle Increments for the Markov Chain

Description

The function provides a graphical visualization of the results obtained from the incrExplor() function. In particular, the considered run-off triangle increments are distributed into the bins according the given Markov chain breaks and states. Two figures are provided: The first figure contains a histogram of the standard incremental residuals with a conrresponding kernel density estimate. The second figure shows how the increments are distributed into the given set of bins (defined by the break points). In addition, the corresponding Markov chain states are displayed

Usage

# S3 method for mcSetup
plot(x, ...)

Value

The function returns a layout with two plots: A histogram with the run-off triangle increments and the barplot with the increments being distributed into the given set of bins

Arguments

x

an object of the class mcSetup -- i.e., the output of the incrExplor() function

...

other graphical parameters to plot

See Also

incrExplor(), mcReserve()

Examples

Run this code
## run-off triangle increments within the default bins
x <- incrExplor(CameronMutual)
plot(x)

## run-off triangle increments and user-defined number of bins
x <- incrExplor(CameronMutual, states = 5)
plot(x)

## run-off triangle increments within the user-specified bins
x <- incrExplor(CameronMutual, breaks = c(500, 1000, 1500))
plot(x)

Run the code above in your browser using DataLab