-
Notifications
You must be signed in to change notification settings - Fork 33
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
Handle messaging around model treatment of missingness #774
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - some suggestions for (I think) slightly clearer wording. I think we should be more restrictive about when this message is shown (e.g. it should be suppressed when there is no missing data).
NA
treatment in obs_opts()
obs_opts(na = "missing")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good.
It's adding a fair amount of infrastructure (an additional function + return value in obs_opts()
that needs to be removed) just to be able to show that message. Shall we give it an expiry (and use keyword "deprecated" somewhere)?
2ad30a4
to
778b3eb
Compare
Was this what you meant? https://github.com/epiforecasts/EpiNow2/pull/774/files#diff-6cd987920443d42098a4963d43b2e0efec9fd16f9198d66705e6d95094e3b87aR185-R194. |
Yes, I think this will do. |
ba50dc2
to
4e4b8b5
Compare
e9ec4b5
to
07d5b2d
Compare
Converting this PR to a draft to start a discussion before opening for review. I'm a little torn and need your opinion (@sbfnk & @seabbs). I have two options here:
Here, the change required in if (!test_data_complete(data, cols_to_check)) {
check_na_setting_against_data(data, obs)
} This second option would mean that Which one makes sense to you? Is there an option I'm missing? UPDATE:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - just needs the reviewer / PR number added.
This comment was marked as outdated.
This comment was marked as outdated.
I think the check failures might be related to epinowcast/actions#24 - I'll clear the cache and run again. |
d5f9d9e
to
056da36
Compare
It was related to |
That was an additional issue - this one was related to the cache (and was successful after clearing it): https://github.com/epiforecasts/EpiNow2/actions/runs/11290308841 Agreed. |
obs_opts(na = "missing")
056da36
to
d5cadd9
Compare
Co-authored-by: Sebastian Funk <[email protected]>
96bca23
to
9c578e5
Compare
Description
This PR closes #771 by adding a message to inform users about how NA's are treated in the default model. It also points to alternatives given the user's use case. This PR also adds missing tests for
obs_opts()
.Initial submission checklist
devtools::test()
anddevtools::check()
).devtools::document()
).lintr::lint_package()
).After the initial Pull Request