A per-risk excess of loss inuring to a cat cover
per_risk_inuring.RdA per-risk layer applied to each risk's loss within an event, with an
event limit capping the sum of its recoveries from one event, and the
events net of its cession for a tower of cat layers. Each risk's
recovery is the layer's occurrence terms on its loss; an event's
recoveries are summed and capped at event_limit; the layer's annual
terms then use up the events' capped recoveries in order, at its share.
The layer must be a plain per-risk layer on the loss basis.
Arguments
- layer
An xol_layer.
- years
A list of years, each a list of events, each a numeric vector of the losses of the risks the event hits.
- event_limit
The most the layer recovers from one event, at 100%;
NULLfor none.- times
NULL, or a list of numeric vectors: each event's time in the year, passed to the net events.- seed
Recorded on the net event set.
Value
A list with ceded (each year's cession), ceded_by_event (a
list of numeric vectors) and net, an event_set for
apply_tower().
Examples
r <- per_risk_inuring(xol_layer("PR", 5, 5), list(list(c(12, 8, 15))), event_limit = 10)
r$ceded
#> [1] 10
events(r$net, 1)
#> [1] 25
tower_ceded(reinsurance_tower(list(xol_layer("Cat", 20, 10))), events(r$net, 1))
#> Cat
#> 15