Open alecloudenback opened 3 years ago
current iteration which works for the LossDevelopmentFactor
sub-model:
abstract type LossDevelopment end
"""
Fill in, or "square" the triangle with a fitted model.
"""
function square(t::ClaimsTriangle,fit)
# TODO
end
function total_loss(t::ClaimsTriangle,fit)
# sum the ultimate claims
return sum(square(t,fit)[:,end])
end
Plan: leverage MLJ. Follow this explanation while prototyping interface: https://github.com/JuliaActuary/ChainLadder.jl/pull/6#issue-559705042