add_outflow: Add Outflows

View source: R/tmb.R

add_linearized_outflowR Documentation

Add Outflows

Description

Add outflows corresponding to inflows specified by add_rate, rep_rate, and vec_rate.

Usage

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

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

Value

updated flexmodel object

See Also

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


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