init_rate_map: Construct an index matrix identifying with which states each...

Description Usage Arguments Value

View source: R/init_rate_map.R

Description

Called internally before rates are parsed when an epimodel object is initialized.

Usage

1
init_rate_map(rates, states)

Arguments

rates

character vector with strings specifying the flow rates between compartments. Each variable in a rate must correspond to the name of one of the states, params, or covars (covariates not yet implemented).

states

character vector with names of compartments corresponding exactly to the names of compartments used in the *_rates arguments.

Value

binary index matrix indicating which changes in each compartment affect each rate


fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.