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

Error in quantile.default(newX[, i], ...) : missing values and NaN's not allowed if 'na.rm' is FALSE #3

Open
ruwanepi opened this issue Oct 24, 2022 · 2 comments

Comments

@ruwanepi
Copy link

ruwanepi commented Oct 24, 2022

Hello John,

Thanks very much to the team for updating the package, and the helpful R journal article. I have been successfully running the package until recently when I encountered this error, after about an hour of runtime (using some data on cholera cases over a 1-year period).

I am unable to trace its origin, so far, but I think it's related to the get.tau.ci function and adding add na.rm = TRUE in the quantile() call for constructing the CIs. Indeed, I'm not sure if it's an issue with the package. Thank you for any insight you may be able to provide.

Error:

Error in quantile.default(newX[, i], ...) : 
  missing values and NaN's not allowed if 'na.rm' is FALSE
Called from: quantile.default(newX[, i], ...)

From traceback:

eval(substitute(browser(skipCalls = pos)
get_tau.ci
get_tau_and_cis
run_main_analysis
@ruwanepi
Copy link
Author

ruwanepi commented Nov 1, 2022

Hi John, I've figured out the problem with the na.rm and modified the code using trace in an interactive R session.

I'll send a pull request which you may consider for inclusion in the package.

Thanks! Happy to get this working again.

Ruwan

@jlessler
Copy link
Contributor

Thanks @ruwanepi . Will keep our eye out for the pull request.

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

2 participants