An aggregate part beside the events
with_aggregate_part.RdThe same events with an aggregate part: amounts in each year that are no
event and have no time, attritional losses say, one column per component
of part. Simulation i of part goes with year i. Its dimensions are
label dimensions, so the part can be given by peril or class: the set's
labels get the part's dimensions not among them, with "" for every loss.
A part with no dimensions is one unlabelled amount a year. Replaces any
aggregate part the set had; label the events first (with_labels()).
Arguments
- x
An event_set.
- part
A predictive_distribution with
x@n_simssimulations and non-negative draws.- sim
Year number, from 1 to
x@n_sims.
Value
with_aggregate_part(): an event_set (its aggregate_part_labels
property is a data frame of each column's labels, NULL without labels).
aggregate_part(): year sim's amounts, one per column, or NULL
without a part.
Details
apply_tower() counts the part in gross and net, and only layers that see
it (the sees_aggregate_part property of an xol_layer(): quota shares
and stop losses) cede from it; per-occurrence layers see the events alone.
In each year it comes before the events, so a binding annual deductible is
used up on it first, unless the layer shares annual terms pro rata.
The events' total() includes it; event_counts() and the occurrence
maxima do not.
Examples
attritional <- predictive_distribution(matrix(c(10, 40, 30)), data.frame(class = "attritional"))
ev <- with_aggregate_part(events_from_years(list(numeric(0), 50, c(5, 60))), attritional)
tower <- reinsurance_tower(list(xol_layer("30x25", 30, 25)))
r <- apply_tower(tower, ev)
ev@aggregate_part_labels
#> class
#> 1 attritional
aggregate_part(ev, 2)
#> [1] 40