Add outflows corresponding to inflows specified by
add_rate
, rep_rate
, and vec_rate
.
add_linearized_outflow(model, from, to)
add_outflow(model, from = ".+", to = ".+")
flexmodel
object
string giving a regular expression for identifying states from which individuals are flowing
string giving a regular expression for identifying states to which individuals are flowing
updated flexmodel
object
By default, this function will set outflows for all
corresponding inflows. To define outflows from
specific states to
other specific states, pass
regular expressions to the from
and to
arguments to identify these states.
add_linearized_outflow
is used to specify
outflows in linearized models
(https://canmod.net/misc/flex_specs#v0.1.1).
Other flexmodel_definition_functions:
add_factr()
,
add_parallel_accumulators()
,
add_rate()
,
add_state_mappings()
,
add_state_param_sum()
,
initial_population()
,
mat_rate()
,
rep_rate()
,
update_disease_free_state()
,
update_linearized_params()
,
update_tmb_indices()
,
vec_rate()