Skip to contents

The development of a single-segment chain_ladder_fit as arguments of chain_ladder() and the expected-loss methods: ldf (its age-to-age factors, named by the age that starts each link), ldf_kind = "ldf" and tail (its tail factor, a constant). Projected with them, a book gets the fit's own factors to the bit; this is ChainLadderFit::to_chain_ladder (docs/design/reserving-v02.md, decision 17). For a fit of several segments, pick one with segment(), or pass the whole fit as development to project a latest_valuation segment by segment.

Usage

to_chain_ladder(fit)

Arguments

fit

A chain_ladder_fit, or a fit with @chain_ladder.

Value

A list of ldf, ldf_kind and tail.

Examples

long <- data.frame(year = c(2020, 2020, 2021), age = c(12, 24, 12), paid = c(100, 150, 110))
fit <- chain_ladder(triangle(long, "year", "age", "paid"), tail = 1.1)
to_chain_ladder(fit)
#> $ldf
#>  12 
#> 1.5 
#> 
#> $ldf_kind
#> [1] "ldf"
#> 
#> $tail
#> [1] 1.1
#> 
book <- latest_valuation(data.frame(year = 2024, age = 12, paid = 50), "year", "paid",
                         age = "age")
do.call(chain_ladder, c(list(book), to_chain_ladder(fit)))@ultimate
#> 2024 
#> 82.5