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

add a warning if R estimate if equal to max value of the grid #15

Open
annecori opened this issue Jul 9, 2019 · 0 comments
Open

add a warning if R estimate if equal to max value of the grid #15

annecori opened this issue Jul 9, 2019 · 0 comments

Comments

@annecori
Copy link
Collaborator

annecori commented Jul 9, 2019

It would be nice to have a warning if the R value returned by earlyR is equal to the maximum value considered in the grid of R values, i.e. max_R.
See for example the code below, where the first call clearly provide a wrong answer but there is now way for the user to realise (particularly dangerous here as the value of max_R is set by default not explicitly by the user
compare:
get_R(c(1, 2, 3, 4, 5, 6), disease = "Ebola") # returns an estimate of R = 10
and:
get_R(c(1, 2, 3, 4, 5, 6), disease = "Ebola", max_R = 40) # returns an estimate of R = 21.5

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