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 using time varying contact matrices #173

Open
slwu89 opened this issue Dec 29, 2021 · 0 comments
Open

error using time varying contact matrices #173

slwu89 opened this issue Dec 29, 2021 · 0 comments

Comments

@slwu89
Copy link

slwu89 commented Dec 29, 2021

Hi, just wondering if I am doing something incorrectly when using parameters_explicit_SEEIR. Here is a minimal example with the error I am encountering:

> mix_mat <- matrix(rexp(17^2), 17, 17)
> mix_mat2 <- matrix(rexp(17^2), 17, 17)
> parameters_explicit_SEEIR(country = "Algeria", contact_matrix_set = list(mix_mat, mix_mat2), tt_contact_matrix = c(0, 5), time_period = 10)
Error in vapply(seq(population), function(x) { : 
  values must be length 17,
 but FUN(X[[1]]) result is length 18
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