JuliaActuary / MortalityTables.jl

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

issues with Belgiums mortality tables #130

Closed korilium closed 1 year ago

korilium commented 1 year ago

When I want to use select with a belgiums mortality table, I get the following error: ERROR:type UltimateTable has no field select

I use the following code : using MortalityTables mort = MortalityTables.table(897) mort.select[10]

The field ultimate does work for the Belgium tables. I have tried to following tables:

alecloudenback commented 1 year ago

Hi there! Yes, It looks like the tables that you have referenced simply don't have select rates in the published table. I checked a few of them:

https://mort.soa.org/ViewTable.aspx?&TableIdentity=897 https://mort.soa.org/ViewTable.aspx?&TableIdentity=895 https://mort.soa.org/ViewTable.aspx?&TableIdentity=634 https://mort.soa.org/ViewTable.aspx?&TableIdentity=30001

Compare those with, e.g., this table which does have a grid of select rates:

https://mort.soa.org/ViewTable.aspx?&TableIdentity=1612

alecloudenback commented 1 year ago

If there are other tables that you would like included, please feel free to provide a link and I can take a look at including them by default. If you want to create a table manually in order to get the benefit of the other package functionality, see https://github.com/JuliaActuary/MortalityTables.jl#custom-tables

alecloudenback commented 1 year ago

I'm going to close this issue as it seems the tables are working as provided, but if you want to discuss further please feel free to respond here or in the Discussions tab.