DemoTools icon indicating copy to clipboard operation
DemoTools copied to clipboard

Also return 1x1 lxMat from interp_coh?

Open sarahertog opened this issue 4 years ago • 3 comments

Hi Tim, Would it be possible to also return the 1x1 lx matrix that is computed in interp_coh()? It would be handy to be able to use it to derive the 1x1 survival ratios required for mig_resid() Thanks!

sarahertog avatar Feb 25 '21 16:02 sarahertog

You mean you just need an easy way to get a 1x1 lx matrix in general, or more that those two methods should use the same module? If it's the 1st, no prob, can write something. If it's the 2nd, this modularization is sort of starting now to recycle some bits between interp_coh() and the in-development mig_resid_beta()

timriffe avatar Feb 25 '21 22:02 timriffe

The 2nd. Great, I will wait for mig_resid_beta(). FYI, not sure if it makes a difference for what you're doing, but I think we are going to want to input single age census pops extended to open age 101 to the interp_coh(). This way we can avoid any NA -> 0 for the last age group and then just truncate back to open age 100 once the cohort interpolation and migration residual stuff is done. Does that sound ok?

sarahertog avatar Feb 25 '21 22:02 sarahertog

OK, great, working this module into mig_resid() will be on the list then.

Regarding the 101 census input (or higher) I agree that's the best approach for now.

timriffe avatar Feb 25 '21 22:02 timriffe