Curtate expectation of life at age x
ex_curtate.RdComputes \(e_x = E[K_x] = \sum_{k=1}^\infty {}_k p_x\) with truncation.
Arguments
- x
Numeric vector of ages (\(x \ge 0\)).
- model
One of
"uniform","exponential","gompertz","makeham","weibull".- ...
Model parameters:
uniform:
omegaexponential:
lambdagompertz:
B,cmakeham:
A,B,cweibull:
shape,scale
- k_max
Maximum integer duration to sum to.
- tol
Stop early if the summand is < tol for several steps.