This function uses the procedure described in Debon et al. (2010, section 3)
binomRes2q(dhat, e, res)
fitted number of deaths (scalar)
number of exposures (scalar)
deviance residual (scalar)
matching observed deaths
Debon, A., Martinez-Ruiz, F., & Montes, F. (2010). A geostatistical approach for dynamic life tables: The effect of mortality on remaining lifetime and annuities. Insurance: Mathematics and Economics, 47(3), 327-336.