observed {ProfileLadder}R Documentation

Observed run-off triangle layout vs. predicted (unknown) layout

Description

Simple layout function to make work with (cumulative or incremental) run-off triangles more easy and straightforward.

Usage

observed(object, cum = TRUE)

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 cumulatige 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

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

See Also

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

Examples

print(observed(5))
print(!observed(5))

data(CameronMutual)
observed(CameronMutual)
observed(CameronMutual, cum = FALSE)


[Package ProfileLadder version 0.1.2 Index]