Learn R Programming

tailloss (version 1.0)

ELT: Event Loss Table

Description

Function to create an ELT object

Usage

ELT(X = NULL, Rate = NULL, Loss = NULL, ID = NULL)

Arguments

X
Data frame containing at least 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.
Rate
Positive numeric vector of arrival rates
Loss
Positive numeric vector of losses
ID
Vector event ID.

Value

An object ELT, a data frame with 3 columns. The column ID contains the ID of each event. The column Rate contains the arrival rates of a single occurrence of event. The column Loss contains the expected losses from each single occurrence of event.

See Also

data.frame

Examples

Run this code
rate <- c(.1, .02, .05)
loss <- c(2, 5, 7)

ELT(Rate = rate, Loss = loss)
# Same as
rl <- data.frame(Rate = rate, Loss = loss)
ELT(rl)

Run the code above in your browser using DataLab