get_reinstatements {reinsureR} | R Documentation |
Get reinstatements
Description
get_reinstatements
gets the reinstatements induced by XL treaties applied to Claims
(Claims-class
) object.
Usage
get_reinstatements(object)
## S4 method for signature 'Claims'
get_reinstatements(object)
Arguments
object |
The object to display |
Examples
c <- data.frame(year = unlist(sapply(2000:2017, function(x) rep(x, rpois(1,3)))))
c$amount <- pmax(rnorm(nrow(c), 200000, 100000), 0)
p <- aggregate(amount ~ year, c, sum)
claims <- claims(c, p)
treaty_1 <- xl(ded = 100000, lim = 20000, aad = 5000,
aal = 200000, prm = 0.01, rns = 1)
claims <- apply_treaty(claims, treaty_1)
get_reinstatements(claims)
[Package reinsureR version 0.1.0 Index]