Constructs an adjacency matrix with rates given in the rows, time, and time-varying covariates on which they each depend given in columns. Thus, when time or a time-varying covariate changes, all of the non-zero entries in the corresponding column must be updated.

build_tcovar_adjmat(rates, tcovar_codes = NULL, forcings = NULL)

Arguments

rates

list of rates in ste_dynamics

tcovar_codes

character vector of time-varying covariate names

forcings

list of forcings

Value

adjacency matrix for which rates need to be updated when a time-varying covariate changes.