Last data update: 2014.03.03

R: Incremental triangle
get.incrementalR Documentation

Incremental triangle

Description

Switch from an cumulative to an incremental triangle

Usage

get.incremental( triangle )

Arguments

triangle

A cumulative run-off triangle

Value

The incremental triangle

Note

The methods in this the DCL package works normally on incremental triangles

Author(s)

M.D. Martinez-Miranda, J.P. Nielsen and R. Verrall

See Also

get.cumulative

Examples

data(NtriangleDCL)
Ntriangle.cum<-get.cumulative(NtriangleDCL)
get.incremental(Ntriangle.cum)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(DCL)
Loading required package: lattice
Loading required package: latticeExtra
Loading required package: RColorBrewer
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/DCL/get.incremental.Rd_%03d_medium.png", width=480, height=480)
> ### Name: get.incremental
> ### Title: Incremental triangle
> ### Aliases: get.incremental
> ### Keywords: manip
> 
> ### ** Examples
> 
> data(NtriangleDCL)
> Ntriangle.cum<-get.cumulative(NtriangleDCL)
> get.incremental(Ntriangle.cum)
       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]  6238  831   49    7    1    1    2    1    2     3
 [2,]  7773 1381   23    4    1    3    1    1    3    NA
 [3,] 10306 1093   17    5    2    0    2    2   NA    NA
 [4,]  9639  995   17    6    1    5    4   NA   NA    NA
 [5,]  9511 1386   39    4    6    5   NA   NA   NA    NA
 [6,] 10023 1342   31   16    9   NA   NA   NA   NA    NA
 [7,]  9834 1424   59   24   NA   NA   NA   NA   NA    NA
 [8,] 10899 1503   84   NA   NA   NA   NA   NA   NA    NA
 [9,] 11954 1704   NA   NA   NA   NA   NA   NA   NA    NA
[10,] 10989   NA   NA   NA   NA   NA   NA   NA   NA    NA
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>