Skip to content

error using time varying contact matrices #173

Description

@slwu89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions