Learn R Programming

ProfileLadder (version 0.2.2)

observed: Observed Run-Off Triangle Layout vs. Predicted (Unknown) Layout

Description

Simple layout function to allow work with fully developed run-off triangles (i.e., completed squares that also contain typically unknown (future) claim payments). Such data are not common in actuarial practice but they are usefull for retrospective analysis and back-testing purposes.

Usage

observed(object, cum = TRUE)

Value

If object is an integer value then the function returns a TRUE/FALSE layout matrix with the TRUE values for the observed (known) part of the run-off triangle (the upper-left triangular part of the matrix) and values FALSE otherwise. If object is a matrix (an object of the class matrix or triangle) then the function returns the observed (known) part of the run-off triangle with NA values elsewhere. Depending on the choice of the cum parameter, either a cumulative (DEFAULT) or incremental (cum = FALSE) run-off triangle is returned

Arguments

object

either an integer value to denote the dimension of the run-off triangle layout (i.e., the value that represents the number of origins (rows) and also the number of the development periods (columns)). Alternatively, a cumulative or incremental run-off triangle (i.e, an object of the class matrix or triangle) can be provided in object. In such case the output returns the standard run-off triangle with NA values in the lower-right triangular part of the matrix (regardless of wheter the input triangle in object forms a run-off triangle or it is a fully observed triangle---data matrix)

cum

logical to indicate whether the output run-off triangle is supposed to be of a cumulative type (DEFAULT) or an incremental type (cum = FALSE). If the input in object is an integer value (i.e., the dimension of the run-off triangle) then the choice of the cum parameter is ignored

See Also

plot.profileLadder(), parallelReserve(), mcReserve()

Examples

Run this code
## observed/unobserved layout for the run-off triangle with 5 origins
print(observed(5))
print(!observed(5))

## fully observed run-off triangle with typically unknown (future) payments
## included in the lower-right triangular part for evaluation purposes
data(CameronMutual) ## the full data matrix
observed(CameronMutual) ## cummulative run-off triangle
observed(CameronMutual, cum = FALSE) ## incremental run-off triangle

Run the code above in your browser using DataLab