build_tcovar_adjmat: Construct an adjacency matrix for which rates need to be...

View source: R/build_tcovar_adjmat.R

build_tcovar_adjmatR Documentation

Construct an adjacency matrix for which rates need to be update when there is a change in the time-varying covariates.

Description

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.

Usage

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.


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.