Exposure and the rule past the pattern's end of a latest valuation
with_exposure.Rdwith_exposure() gives a latest_valuation its exposure, one value per row in
the order of as.data.frame(); with_past_pattern_end() sets how an
origin older than the pattern's end develops, for every segment.
Arguments
Examples
d <- latest_valuation(data.frame(year = 2023:2024, age = c(24, 12), paid = c(37, 13)),
"year", "paid", age = "age")
with_exposure(d, c(60, 60))@exposure
#> [1] 60 60
with_past_pattern_end(d, "tail")@past_pattern_end
#> [1] "tail"