timriffe / DemoTools

Tools for the evaluation, adjustment, and standardization of demographic data
https://timriffe.github.io/DemoTools
Other
59 stars 31 forks source link

interp_coh.R issues with number of ages and interp #244

Closed peterdavjohnson closed 3 years ago

peterdavjohnson commented 3 years ago

Line 737 in call to interp_coh_download_mortality, the line:

OAnew = max(age1) + 1,

Should be either

OAnew = max(age1) ,

or

OAnew = length(age1) - 1,

This is also true at line 801 in the call to interp_coh_lxMat_pxt.