Calculate Kannisto-Thatcher extension parameters
calculate_kt_params.Rd
Calculate optimal parameters \(\alpha\) and \(\beta\) in the Kannisto-Thatcher model for use in extending a single life table.
Arguments
- lt
data.table()
Life table with columnsage_start
,mx
, andqx
.- age_start_range
numeric(2)
vector of lower and upper inclusive age group start bounds to calculate parameters from.- fn
Optimization function passed to
optim()
.
Details
Parameter selection
Initial parameters are derived from the model:
$$\text{logit}(m_x) \sim \ln(\alpha) + \beta * \text{age}$$
Optimization is then done using optim()
to minimize the function fn
.
fn
must have the method signature fn(params, data)
, where:
params
is a named vector of the parameters \(\alpha\) (a
) and \(\beta\) (b
)data
is a life table similar tolt