Skip to contents

limit xs attachment on each loss, then annual terms. For one year, ceded = share * min(max(sum of per-loss recoveries - aggregate_deductible, 0), aggregate_limit), less any loss corridor (with_loss_corridor()) before the annual limit.

Usage

xol_layer(
  name,
  limit,
  attachment,
  share = 1,
  aggregate_deductible = 0,
  aggregate_limit = Inf,
  reinstatements = NULL,
  premium = 0,
  reinstatement_rates = NULL,
  pro_rata_time = FALSE,
  allocation = "event_order",
  ptr = NULL
)

Arguments

name

Layer name, unique within a tower.

limit

Per-occurrence limit; may be Inf.

attachment

Per-occurrence attachment.

share

Placed share, in (0, 1].

aggregate_deductible

Annual aggregate deductible.

aggregate_limit

Annual aggregate limit; Inf for none.

reinstatements

Number of free reinstatements, which sets the annual limit to limit * (reinstatements + 1); cannot be combined with a finite aggregate_limit.

premium

Upfront premium for the placed share: the base of paid reinstatements, ceding and profit commissions and a sliding scale's loss ratio. with_rate_on_line() and its siblings set it from a quote.

reinstatement_rates

Paid reinstatements: one rate per reinstatement, as a fraction of premium (1 is 100%), pro rata as to amount. Sets the annual limit to limit * (length(reinstatement_rates) + 1); cannot be combined with reinstatements or a finite aggregate_limit.

pro_rata_time

Paid reinstatements also pro rata as to time: the limit a loss at time t (the fraction of the year elapsed) uses up is charged at 1 - t. Needs reinstatement_rates, and events with times (with_uniform_times(), or times in events_from_years()).

allocation

How the annual terms (aggregate deductible and limit, reinstatements) split the year's recovery among its events: "event_order" uses the aggregate limit up in the order the events occur, so a later event gets what is left; "pro_rata" scales every event's recovery by the same factor, the annual recovery after the terms over the one before them. The annual total is the same; the split by event, and so what an inuring stage sees, differs. Cannot be combined with pro_rata_time.

ptr

Internal: an existing layer to wrap.

Value

An xol_layer object with read-only properties for each term (loss_corridor is c(lower, upper, retained), ceding_commission the flat rate, sliding_scale a data frame of commission and loss_ratio (or NULL), profit_commission c(share, allowance), no_claims_bonus c(share, years, threshold) (with_no_claims_bonus()) and swing_rating c(basic, lcm, minimum, maximum); profit_commission_carry list(years) and sliding_scale_carry list(deficit, credit, years) (NULL when nothing is carried, years NULL without limit); each empty when there is none; brokerage the flat rate, brokerage_scale a data frame of rate and loss_ratio, deductions a data frame of label, basis, value and inside_nmbf (or NULL), and the flags scales_before_annual_terms and brokerage_within_commission_range; see with_brokerage()), and sees_aggregate_part, whether the layer cedes from an event set's aggregate part (with_aggregate_part(): on the loss with attachment 0 and no limit, a quota share or a stop loss), and franchise, disappearing (the end of a disappearing deductible, NA without one), nth_event and drop_down (with_franchise()).

See also

quota_share() and aggregate_stop_loss() for the other contract types, which are layers too; with_loss_corridor() for a corridor; with_rate_on_line(), with_ceding_commission() and with_swing_rating() for premiums and commissions.

Examples

l <- xol_layer("5x5", 5e6, 5e6, reinstatements = 1)
ceded(l, 7e6)
#> [1] 2e+06
ceded(l, c(12e6, 20e6, 30e6))
#> [1] 1e+07
paid <- xol_layer("10x10", 10, 10, premium = 2, reinstatement_rates = c(1, 0.5))
reinstatement_premium(paid, c(22, 12))
#> [1] 2.2
timed <- xol_layer("10x10", 10, 10, premium = 2, reinstatement_rates = c(1, 0.5),
                   pro_rata_time = TRUE)
reinstatement_premium(timed, c(22, 12), times = c(0.25, 0.5))
#> [1] 1.6
ceded_by_event(xol_layer("10x5", 10, 5, reinstatements = 1), c(15, 20, 10))
#> [1] 10 10  0
ceded_by_event(xol_layer("10x5", 10, 5, reinstatements = 1, allocation = "pro_rata"),
               c(15, 20, 10))
#> [1] 8 8 4