Skip to contents

The future increments of one segment, one per origin and age, as reinflate() takes them (design note docs/design/reserving-inflation.md decision 6). Python's FutureCells.

Usage

future_cells(x, segment = NULL, origins = NULL)

Arguments

x

A chain_ladder_fit, an odp_glm_fit or a data frame.

segment

For a chain_ladder_fit: the key values of the segment.

origins

For a data frame: the origin periods.

Value

A future_cells with the properties origins, cells (a data frame with the columns origin, age, valuation and value) and reserves (the sum of the cells by origin).

Details

  • For a chain_ladder_fit, the cells are at each age of the grid after an origin's latest one the projected cumulative value less the one before, then the rest of the ultimate (the tail) as one increment one development period after the oldest age. The cells sum to the fit's reserves. segment names the one segment of a fit over several, as a named list or character vector of key values (c(lob = "auto")); the default needs a fit of one segment.

  • For an odp_glm_fit, the cells are the future cells' means.

  • For a data frame, the columns origin, age (months), valuation (the month the cell's development period ends in, a "YYYY-MM" label or a date: its index period is the cell's payment period) and value (at the base level). origins lists the origin periods ("2020", "2020Q3", ...), by default the origins in the order they occur.

See also

Examples

cells <- future_cells(data.frame(
  origin = c("2020", "2020"), age = c(24, 36),
  valuation = c("2021-12", "2022-12"), value = c(50, 25)
))
cells@reserves
#> 2020 
#>   75