This lifetable identity is the same no matter what kind of lifetable is required. You can find it in any demography textbook.
lt_id_d_q(ndx)
| ndx | numeric. Vector of age-specific lifetable survivorship. |
|---|
nqx vector of lifetable death probabilities.
The vector returned is the same length as dx.
Preston S, Heuveline P, Guillot M (2000). Demography: measuring and modeling population processes. Wiley-Blackwell.