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
|
cum |
logical to indicate whether the output run-off triangle is supposed to
be of a cumulative type ( |
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)