Using pyliferisk with another mortality tables

100 views
Skip to first unread message

José Roberto Santos

unread,
Feb 5, 2022, 2:03:57 PM2/5/22
to openactuarial
Hi,

    Is it possible execute pyliferisk with another Mortality tables? I am studying tools and searching for articles for elaboration of a project of calculation of private pension and need use another tables for the calculation.

Regards
José Roberto

Francisco Gárate

unread,
Feb 6, 2022, 1:16:01 PM2/6/22
to José Roberto Santos, openactuarial
Hi, José Roberto.
Using pandas is very easy to do (see example 6 from documentation):

import pandas as pd
import pyliferisk as lf
USLife1979 = pd.read_csv(’ uslife79.csv ’)
USLife79lx = USLife1979[’lx’].tolist()
mt = lf.MortalityTable(lx=USLife79lx)

Note that first item indicates the age when table starts (p.e.:
SCOT_DLT_00_02_M = [0, 0.006205, 0.000328, 0.00026 ...])

Regards,
F.

El sáb, 5 feb 2022 a las 20:03, José Roberto Santos
(<zero.sa...@gmail.com>) escribió:
> --
> You received this message because you are subscribed to the Google Groups "openactuarial" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openactuaria...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/openactuarial/c4b13618-6881-4ced-a4f0-ab4610cdb91dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages