Skip to contents

A loss that is negative or not finite is an error: it is usually a loss stored with the sign of money paid out, which read_ylt() reads with losses_negative = TRUE.

Usage

ceded(layer, losses, ...)

Arguments

layer

An xol_layer.

losses

Numeric vector of one year's losses.

...

Unused; for methods.

sums_insured

For a surplus_treaty(), the sum insured of the risk each loss hit, one per loss.

Value

A single number.

Examples

ceded(xol_layer("L", 10, 5), c(8, 20, 12))
#> [1] 20
ceded(surplus_treaty("S", 1e6, 9), c(2e6, 2e6), sums_insured = c(5e6, 20e6))
#> [1] 2500000