get_treaties-methods: Get treaties

Description Usage Arguments Examples

Description

get_treaties gets the characteristics of treaties applied to Claims (Claims-class) object.

Usage

1
2
3
4
get_treaties(object)

## S4 method for signature 'Claims'
get_treaties(object)

Arguments

object

The object to display

Examples

1
2
3
4
5
6
7
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 <- qs(0.8, com = 0.25)
claims <- apply_treaty(claims, treaty_1)
get_treaties(claims)

reinsureR documentation built on May 2, 2019, 3:26 a.m.