Description Usage Arguments Details Examples
Generate the dates needed to build a triangle analysis
1 2 3 4 | triangle_skeleton(minLeftOrigin, fromMinLeftOrigin = FALSE,
originLength = 12, rowDev = 12, colDev = 12,
initialAge = originLength, lastValuationDate = Sys.Date(),
method = "static")
|
minLeftOrigin |
When should the first origin period (potentially) start? (Depends on |
fromMinLeftOrigin |
Should the first origin period start on exactly |
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 |
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 |
Returns a data.table with columns LeftOrigin, RightOrigin, ValuationDate, Age
1 | triangle_skeleton(as.Date("2014-1-1"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.