JuliaActuary / MortalityTables.jl

Easily Reference and use Actuarial Mortality Tables
https://juliaactuary.github.io/MortalityTables.jl/stable
Other
28 stars 10 forks source link

add Constructor to avoid needing to have users add OffsetArrays #65

Closed alecloudenback closed 4 years ago

alecloudenback commented 4 years ago

E.g. with a slightly customized (e.g. improved) mortality rate, let users create a mort object like:

mortality(vec,start_age=age)

instead of

using OffsetArrays
OffsetArray(vec,age)

Can currently do this with UltimateMortality but it's not clear to user that this is semantically the same as above.