add_state_mappings: Add State Mappings

View source: R/tmb.R

add_state_mappingsR Documentation

Add State Mappings

Description

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)

Usage

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

See Also

Other flexmodel_definition_functions: add_factr(), add_linearized_outflow(), add_parallel_accumulators(), add_rate(), add_state_param_sum(), initial_population(), mat_rate(), rep_rate(), update_disease_free_state(), update_linearized_params(), update_tmb_indices(), vec_rate()


bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.