Skip to contents

$$ \text{SSE} = \sum ((q_x - q_{x,\text{pred}})^2) $$

Usage

sse_kt_qx(params, data)

Arguments

params

numeric(2) vector of Kannisto-Thatcher model parameters \(\alpha\) (a) and \(\beta\) (b).

data

data.table() Life table with at columns age_start and qx.

Value

Sum of square errors of \(q_x\).