summy-methods: Claims: Summary function

Description Usage Arguments Value Examples

Description

summy summarizes the data contained in the object Claims (Claims-class).

Usage

1
2
3
4
summy(object, op = "mean")

## S4 method for signature 'Claims'
summy(object, op = "mean")

Arguments

object

The Claims object to represent.

op

Character. The aggregation operation over the simulIds, among:

  • mean: default value.

  • sd

  • median

  • min

  • max

Value

The summarized data

Examples

1
2
3
4
5
6
7
8
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)
summy(claims)

ArnaudBu/reinsureR documentation built on May 22, 2019, 1:44 p.m.