lifeTable and direct access to deathProbs yield different qx
Am 24.08.21 um 18:37 schrieb Singhal, Gaurav: Dear Dr. Kainhofer, I was using your R package Mortality Tables. I realized that when I create a lifeTable using your function lifeTable(), the resulting lifeTable does not return the original death probabilities as in the Mortality Tables.
For instance, try this code:
> USA2012IAM.male@deathProbs[which(USA2012IAM.male@ages==10)]
[1] 0.000113
> lt = lifeTable(USA2012IAM.male)
> qxt(lt, x = 10, t = 1)
[1] 0.0001482273
Regards, Gaurav