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

Calibrate crashing #142

Open
flitaiff opened this issue Sep 21, 2020 · 0 comments
Open

Calibrate crashing #142

flitaiff opened this issue Sep 21, 2020 · 0 comments

Comments

@flitaiff
Copy link

flitaiff commented Sep 21, 2020

Hi there,

When trying to run ´calibrate´ with data from Brazil, it crashes with:

Running Grid Search...
Error in dnbinom(data, k, mu = mu, log = TRUE) :
Non-numeric argument to mathematical function`

Tried different combinations of parameters with no success.

out <- calibrate(
      data = Brasil[1:30,],
      R0_min = 1,
      R0_max = 5,
      R0_step = 0.1,
      first_start_date = "2020-02-22",
      last_start_date = "2020-02-23",
      day_step = 1,
      replicates = 100,
      n_particles = 10000,
      country = "Brazil"
    )

head(Brasil)
X date deaths cases
1 1 2020-02-25 0 0
2 2 2020-02-26 0 1
3 3 2020-02-27 0 1
4 4 2020-02-28 0 1
5 5 2020-02-29 0 2
6 6 2020-03-01 0 2

The object "Brasil" is attached.

Would you please tell me what is going on?

Brasil.zip

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