Description Usage Arguments Value See Also Examples
Function to create an ELT object
1 |
X |
Data frame containing at least two numeric columns. The column |
Rate |
Positive numeric vector of arrival rates |
Loss |
Positive numeric vector of losses |
ID |
Vector event ID. |
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.
1 2 3 4 5 6 7 | 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)
|
Loading required package: MASS
ID Rate Loss
1 1 0.10 2
2 2 0.02 5
3 3 0.05 7
ID Rate Loss
1 1 0.10 2
2 2 0.02 5
3 3 0.05 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.