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 = ".+")

Arguments

model

flexmodel object

from

string giving a regular expression for identifying states from which individuals are flowing

to

string giving a regular expression for identifying states to which individuals are flowing

Value

updated flexmodel object

Details

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).