Indexation of a triangle and re-inflation of its projection
indexation.RdAn calendar_index() restates each increment of a triangle at the price
level of one base period; the restated triangle is developed by any
method; its projected future increments (future_cells()) are taken back
to the money of their payment periods (Taylor 1977, equation 8; design
note docs/design/reserving-inflation.md). Python's Indexation.
Usage
indexation(index, base)
indexation_factor(x, month)
restate(x, triangle, column = NULL)
inflate(x, triangle, column = NULL)
reinflated(cells, reserves, base_reserves)
reinflate(x, cells)Arguments
- index
- base
The base price level: the index period that contains this month (a
"YYYY-MM"label or a date).- x
An
indexation.- month
Months as
"YYYY-MM"labels or dates.- triangle
A
triangle().- column
The column to restate;
NULLfor the triangle's only one.- cells
future_cells()at the base level; forreinflated(), the re-inflated cells.- reserves, base_reserves
For
reinflated(): the reserves by origin in the money of the payment periods and at the base level. Areinflatedis made byreinflate(); the constructor only holds its fields.
Value
indexation(): an indexation with the properties index and
base (a "YYYY-MM" label). restate() and inflate(): a
triangle(). reinflate(): a reinflated with the properties cells
(the re-inflated future_cells()), reserves and base_reserves (one
per origin), total_reserve and total_base_reserve.
indexation_factor(): a numeric vector.
Details
restate()divides each increment ofcolumnbyI(p) / I(base),pthe index period that contains the cell's valuation month, in the triangle's basis (a cumulative triangle is differenced, restated and cumulated again), in every segment. Other columns are unchanged. An increment after a hole is restated at its own cell's period.inflate()is its inverse.reinflate()takes future increments at the base level to the money of their payment periods and sums them by origin. The index past its last given period needs afuture_rate.indexation_factor()isI(p) / I(base)at each month: the factor that takes an amount at the base level to the money ofp.
Examples
long <- data.frame(
year = c(2020, 2020, 2021), age = c(12, 24, 12), paid = c(100, 155, 110)
)
tri <- triangle(long, "year", "age", "paid")
at_2020 <- indexation(calendar_index("2020", c(1, 1.1), future_rate = 0.1), "2020-01")
restate(at_2020, tri)@values[1, 1, , ]
#> development
#> origin 12 24
#> 2020 100 150
#> 2021 100 NA
cells <- future_cells(data.frame(origin = "2021", age = 24, valuation = "2022-12", value = 50))
reinflate(at_2020, cells)@total_reserve
#> [1] 60.5