tri_data: Data for making example triangles

Description Usage Format Examples

Description

This data is a subset of the the losses data frame from the casdata package available on Github https://github.com/Ractuary/casdata

Usage

1

Format

A data frame with 21 rows and 7 variables:

lob

Line of Business

gr_code

Unique company code

gr_name

Company name

origin

the origin period of the losses

dev

the development age of the losses

incurred

the cumulative incurred losses

paid

the cumulative paid losses

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# code used to create this dataset
if (interactive()) {
  library(casdata)
  library(dplyr)
  library(devtools)

  tri_data <- losses %>% filter(lob == "wkcomp", gr_code == 671, origin >= 1992) %>%
                mutate(cal = origin + dev - 1) %>%
                filter(cal <= 1997) %>%
                select(-bulk, -cal)

   use_data(tri_data, overwrite = TRUE)
}

Ractuary/devtri documentation built on May 5, 2019, 3:49 a.m.