rep_rate: Repeat a Rate for Several Rate Matrix Elements

View source: R/tmb.R

rep_rateR Documentation

Repeat a Rate for Several Rate Matrix Elements

Description

Repeat a Rate for Several Rate Matrix Elements

Usage

rep_rate(model, from, to, formula, mapping = c("pairwise", "blockwise"))

Arguments

model

flexmodel object

from

character vector defining states from which flow is coming

to

character vector defining states from which flow is going

formula

Model formula defining dependence of the repeated rate on existing variables. See avail_for_rate for a function that will print out the names of variables that are available for use in these formulas.

mapping

experimental – please choose default for now

See Also

Other flexmodel_definition_functions: add_factr(), add_linearized_outflow(), add_parallel_accumulators(), add_rate(), add_state_mappings(), add_state_param_sum(), initial_population(), mat_rate(), update_disease_free_state(), update_linearized_params(), update_tmb_indices(), vec_rate()

Other rate_functions: add_rate(), mat_rate(), vec_rate()


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