create_ylt: Create a YLT from ELT via monte carlo simulation

Description Usage Arguments Value Examples

View source: R/cat_functions.R

Description

Create a YLT from ELT via monte carlo simulation

Usage

1
create_ylt(dt, sims, ann_rate, event_id, expval, mu)

Arguments

dt

a data.table with modified ELT

sims

number of years to simulate

ann_rate

event frequency

event_id

unique event identifier

expval

total amount exposed

mu

mean event loss

Value

a tidy data.table with Loss, Year and ID. Where a year simulated with zero events will show as "none"

Examples

1
2
3
create_ylt(create_elt(eltr::example_elt, ann_rate="rate", mu="mean", 
      sdev_i = "sdevi" , sdev_c = "sdevc", expval="exp"),
      sims=10,ann_rate = "rate" ,event_id = "id",expval = "exp",mu ="mean")

eltr documentation built on Jan. 16, 2021, 5:05 p.m.