powered by
OEP Curve
create_oep_curve( dt, y, z, rp = c(10000, 5000, 1000, 500, 250, 200, 100, 50, 25, 10, 5, 2) )
aggregate annual YLT
vector of year
vector of loss amount
return period default points= c(10000,5000,1000,500,250,200,100,50, 25,10,5 , 2)
a vector of OEP at return periods as specified by the argument rp
# NOT RUN { 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") # }
Run the code above in your browser using DataLab