Skip to contents

An 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

A calendar_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; NULL for the triangle's only one.

cells

future_cells() at the base level; for reinflated(), 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. A reinflated is made by reinflate(); 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 of column by I(p) / I(base), p the 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 a future_rate.

  • indexation_factor() is I(p) / I(base) at each month: the factor that takes an amount at the base level to the money of p.

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