triangle_skeleton: Triangle Skeleton

Description Usage Arguments Details Examples

Description

Generate the dates needed to build a triangle analysis

Usage

1
2
3
4
triangle_skeleton(minLeftOrigin, fromMinLeftOrigin = FALSE,
  originLength = 12, rowDev = 12, colDev = 12,
  initialAge = originLength, lastValuationDate = Sys.Date(),
  method = "static")

Arguments

minLeftOrigin

When should the first origin period (potentially) start? (Depends on fromMinLeftOrigin)

fromMinLeftOrigin

Should the first origin period start on exactly minLeftOrigin? If FALSE the last valuation date will be exactly lastValuationDate

originLength

The length of each origin period in months

rowDev

Number of months between rows

colDev

Number of months between columns

initialAge

At what age should the first valuation period start?

lastValuationDate

When whould the last valuation date (potentially) be? (Depends on fromMinLeftOrigin)

method

One of "static", "dynamic". If static, Age x is relative to the beginning of the cohort. If dynamic, Age x is relative to the acquisition date of each customer

Details

Returns a data.table with columns LeftOrigin, RightOrigin, ValuationDate, Age

Examples

1

ben519/trinalysis documentation built on May 12, 2019, 10:56 a.m.