add_state_param_sum: Sums of States and Parameters

View source: R/tmb.R

add_state_param_sumR Documentation

Sums of States and Parameters

Description

Save intermediate sums of states and parameters so that they can be used as factors in rate expressions and retured as part of the simulation history.

Usage

add_state_param_sum(model, sum_name, summands)

Arguments

model

flexmodel object

sum_name

name of sum of state variables and parameters

summands

character vector of regular expressions for identifying state variables and parameters to sum together. See avail_for_sum for a function that will return all names that these regular expressions will search through.

Value

updated flexmodel

See Also

Other flexmodel_definition_functions: add_factr(), add_linearized_outflow(), add_parallel_accumulators(), add_rate(), add_state_mappings(), 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.