Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling lots of zeros #5

Open
robjhyndman opened this issue Oct 6, 2013 · 2 comments
Open

Handling lots of zeros #5

robjhyndman opened this issue Oct 6, 2013 · 2 comments
Assignees

Comments

@robjhyndman
Copy link
Owner

When there are lots of zeros in deaths, births and population numbers, the package can fail.

Need to: make existing functions more robust to zeros. (Test on Faroe Islands data).

Could add: interpolation using a bivariate smoother on age-time mortality surface.

@ghost ghost assigned robjhyndman Oct 6, 2013
@ArthurRose
Copy link

Hallo Prof. Hyndman, I noticed that your package can not handle zeros well. It can interpolate zeros if there is at least 1 non zero entry per age group. If an entire age group is zero it will fail (LC function).

For data for Curacao I used your fill.zero functions over the age groups and subsequently over the years.

I used your fill.zero interpolation function on the rows, as intended, with the slight modification that it will skip a row containing only zero. In a second pass over the columns it applies the same function and interpolates over the columns. My data is for Curacao, a small island in the Caribbean.

You might want to add a Weighted Least Squared minimalization method with dummy substitution to find the parameters for LC regardless of the zeros and not just SVD on the log of the mortality rates.

Lifemetrics uses MLE and is not able to handle zeros either without modifying the code, so you packages can gain in popularity by adding various methods to fit lee-carter. WLS, MLE ...(Wilmoth, 1993)

Is it correct to interpolate over the rows and than the columns?

@ArthurRose
Copy link

Package ‘MortalitySmooth’, Author Carlo G Camarda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants