# NOT RUN {
# }
# NOT RUN {
#Example: SLA for the spliced log-gamma gpd model (tail-index = 0.014, no interpolation required)
opriskmodel = list()
opriskmodel[[1]] = list()
opriskmodel[[1]]$sevdist = buildSplicedSevdist("lgamma", c(1.23, 0.012),
"gpd", c(200, 716, 0.014), 2000, 0.8)
opriskmodel[[1]]$freqdist = buildFreqdist("pois", 50)
#Example: SLA for the spliced log-gamma gpd model (tail-index = 0.9, interpolation performed)
opriskmodel[[2]] = list()
opriskmodel[[2]]$sevdist = buildSplicedSevdist("lgamma", c(1.23, 0.012),
"gpd", c(200, 716, 0.9), 2000, 0.8)
opriskmodel[[2]]$freqdist = buildFreqdist("pois", 50)
sla(opriskmodel, alpha = 0.95)
#generate plot if interpolation was performed
sla(opriskmodel, alpha = 0.95, plot = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab