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: misleading warning when dropping exit<entry with fot #127

Open
mattirantanen opened this issue Feb 22, 2017 · 0 comments
Open

lexpand: misleading warning when dropping exit<entry with fot #127

mattirantanen opened this issue Feb 22, 2017 · 0 comments
Assignees
Labels

Comments

@mattirantanen
Copy link
Collaborator

Say there is some rows with exit dates before the entry date.
lexpand drops the rows correctly, but when splitting by follow-up (fot) the warning message might be misleading:

The R code below prints a warning
dropped 1 rows where subjects left follow-up before lowest fot breaks value. though a more reasonable warning could be
dropped 1 rows where entry > exit.

DT <- data.table(birth = 2000, entry = 2010, exit = c(2005,2015), status = 1:0)
l <- lexpand(data=DT, birth=birth, entry=entry, exit=exit, 
              status = status, breaks = list(fot = 0:10))

This is quite minor thing, but might help debugging complicated data.

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

No branches or pull requests

2 participants