create_oep_curve: OEP Curve

Description Usage Arguments Value Examples

View source: R/cat_functions.R

Description

OEP Curve

Usage

1
2
3
4
5
6
create_oep_curve(
  dt,
  y,
  z,
  rp = c(10000, 5000, 1000, 500, 250, 200, 100, 50, 25, 10, 5, 2)
)

Arguments

dt

aggregate annual YLT

y

vector of year

z

vector of loss amount

rp

return period default points= c(10000,5000,1000,500,250,200,100,50, 25,10,5 , 2)

Value

a vector of OEP at return periods as specified by the argument rp

Examples

1
2
create_oep_curve(data.table::data.table("Year" = c(1,2,3,4,5) , 
          "Loss" =c(1 , 20 , 500 , 100 , 10000)) , y= "Year", z="Loss")

RandhirBilkhu/eltr documentation built on Jan. 27, 2021, 12:14 a.m.