Iterate old age qx
iterate_qx.RdSolve for an optimal extension of qx values to higher ages by comparing projected life expectancy to input open-age life expectancy.
Arguments
- dt
[
data.table()]
Life tables with variables inid_varsplus: 'age_length', 'dx', 'ax', 'qx', 'terminal_age_start', 'mx_term'.- ax_params
[
data.table()]
Parameters for qx to ax conversion. Columns: 'age', 'sex', 'par_con', 'par_qx', 'par_sqx'.- id_vars
[
character()]
ID variables that uniquely identify each observation indt. Must include 'age'.- n_iterations
[
numeric()]
Number of iterations to run.