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
)
flexmodel
object
regular expression for identifying states to be dropped before computing the eigenvector of the Jacobian of the linearized model
regular expression for identifying states to be dropped from the eigenvector so that only 'infected' states remain
regular expression for identifying states associated with susceptible classes
updated flexmodel
object
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()