Declare a time varying covariate to be a forcing variable that moves individuals between model compartments at discrete times. Flow in and out of model compartments is allocated proportionally to the compartment counts in the source and destination compartments.

forcing(tcovar_name, from, to)

Arguments

tcovar_name

name of the time varying covariate

from

vector of compartment names from which individuals exit

to

vector of compartment names to which individuals enter

Value

list containing the forcing specification