compressELT: Compress the event loss table

Description Usage Arguments Value Examples

Description

Function to merge losses of the same amount adding up their corresponding occurrence rates, and to round the losses to the 10^digits integer value.

Usage

1
compressELT(ELT, digits = 0)

Arguments

ELT

Data frame containing two numeric columns. The column Loss contains the expected losses from each single occurrence of event. The column Rate contains the arrival rates of a single occurrence of event.

digits

Integer. It specifies the rounding of the losses to the 10^digits integer value of the event loss table. digits < 0 decreases the precision of the calculation, but considerably decreases the time to perform it. If digits = 0 it only merges the losses of the same amount adding up their corresponding rates. The default value is digits = 0.

Value

Data frame containg two numeric columns. The column Loss contains the expected losses from each single occurrence of event. The column Rate contains the arrival rates of a single occurrence of event.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(UShurricane)

# Compress the table to thousands of dollars

USh.k <- compressELT(ELT(UShurricane), digits = -3)
summary(USh.k)

# Compress the table to millions of dollars

USh.m <- compressELT(ELT(UShurricane), digits = -6)
summary(USh.m)

igollini/tailloss documentation built on May 18, 2019, 3:40 a.m.