Add regular expressions for identifying what states are included in various stages of the eigenvector-based method for constructing initial states (https://canmod.net/misc/flex_specs#v0.1.1)

add_state_mappings(
  model,
  eigen_drop_pattern,
  infected_drop_pattern,
  initial_susceptible_pattern
)

Arguments

model

flexmodel object

eigen_drop_pattern

regular expression for identifying states to be dropped before computing the eigenvector of the Jacobian of the linearized model

infected_drop_pattern

regular expression for identifying states to be dropped from the eigenvector so that only 'infected' states remain

initial_susceptible_pattern

regular expression for identifying states associated with susceptible classes

Value

updated flexmodel object