Deficits and credits carried over a contract term
with_profit_commission_carry_forward.RdThe same layer, carrying amounts between the years of a term
(apply_tower_term()):
Usage
with_profit_commission_carry_forward(layer, years = NULL)
with_sliding_scale_carry_forward(
layer,
deficit = TRUE,
credit = FALSE,
years = NULL
)
profit_commissions_over(layer, ceded)
ceding_commissions_over(layer, ceded)Arguments
- layer
An xol_layer.
- years
How many later years an amount may be carried into;
NULL(the default) until it is used up.- deficit, credit
Whether to carry deficits and credits.
- ceded
Numeric vector of the layer's ceded loss in consecutive years, at the placed share.
Value
An xol_layer; for the *_over() functions, a numeric vector,
one commission per year.
Details
with_profit_commission_carry_forward(): a year whose ceded loss exceedspremium * (1 - allowance)pays no profit commission and carries the excess, which later years' profits cover before any commission is paid.with_sliding_scale_carry_forward(): deficits (ceded loss above the last anchor's loss ratio), credits (below the first anchor's) or both. Each year adds what was carried to its own ceded loss before the commission is read off the scale, and carries what is then still beyond the scale's ends.
Amounts are used up oldest first. Set the profit commission or sliding
scale first. A single year (apply_tower()) starts with nothing carried.
profit_commissions_over() and ceding_commissions_over() give the
commissions over consecutive years with the given ceded losses.
Examples
qs <- with_premium_rate(quota_share("QS", 0.5), 1, 200)
pc <- with_profit_commission_carry_forward(with_profit_commission(qs, 0.25, 0.1))
profit_commissions_over(pc, c(120, 40))
#> [1] 0 5
slid <- with_sliding_scale(qs, c(0.45, 0.25), c(0.60, 0.70))
ceding_commissions_over(with_sliding_scale_carry_forward(slid), c(80, 55))
#> [1] 25 35