Description Usage Arguments Value Examples
View source: R/cat_functions.R
Create a YLT from ELT via monte carlo simulation
1 | create_ylt(dt, sims, ann_rate, event_id, expval, mu)
|
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 |
a tidy data.table with Loss, Year and ID. Where a year simulated with zero events will show as "none"
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.