Closed lahotirichie closed 7 years ago
I guess the warning is caused by the second origin year, which has no IBNR. Please attach the CSV file, which makes it much easier to reproduce your issue.
Hi Markus,
I have attached the file herewith. Mock2.xlsx
The issue arises as the column names of your triangles are characters V1 ... V11. If you change those to numerics it will work, e.g:
colnames(mock3) <- 1:11
plot(MackChainLadder(mock3, est.sigma = "Mack"), lattice = TRUE)
That works. Thanks!
When getting the plot of Chain ladder developments by origin period it is throwing an error saying In expand.grid(origin = as.numeric(dimnames(.FullTriangle)$origin), : NAs introduced by coercion. Suggestions on resolving?
Latest Dev.To.Date Ultimate IBNR Mack.S.E CV(IBNR) 1 2,324 1.000 2,324 0.00 0.000 NaN 2 2,110 1.000 2,110 0.00 0.977 Inf 3 2,463 0.999 2,465 1.67 3.129 1.876 4 4,738 0.997 4,752 13.55 13.965 1.031 5 10,131 1.000 10,129 -1.55 62.252 -40.085 6 15,077 1.000 15,084 7.38 89.183 12.078 7 20,110 0.992 20,275 165.02 186.541 1.130 8 16,952 0.967 17,521 569.46 306.574 0.538 9 14,707 0.896 16,405 1,698.44 389.187 0.229 10 12,641 0.741 17,050 4,409.25 646.818 0.147 11 6,603 0.314 21,046 14,443.33 2,244.681 0.155
Latest: 107,856.00 Dev: 0.84 Ultimate: 129,162.55 IBNR: 21,306.55 Mack.S.E 2,548.62 CV(IBNR): 0.12