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

lexpand: In pop.haz repeat the risk of death of the first period backwards in time if needed #124

Open
mattirantanen opened this issue Oct 25, 2016 · 0 comments

Comments

@mattirantanen
Copy link
Collaborator

This would be consistent behaviour as lexpand replicates the latest year of pophaz data when necessary. This would avoid the NA values in variable pop.haz.

Example where pop.haz is NA with a warning:

dat <- data.table(bi_date = 1890, dg_date = 1895, ex_date = 2000, status = 1, sex = 1)
    x3 <- lexpand(dat, status = status != 0,
                  birth = bi_date, entry = dg_date, exit = ex_date,
                  pophaz=popmort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant