Construct a time-varying covariance matrix that includes time and seasonality, based on a user-supplied time-varying covariate matrix. Used internally.

build_tcovar_matrix(
  tcovar = NULL,
  tparam = NULL,
  forcings = NULL,
  timestep = NULL,
  census_times = NULL,
  parameters = NULL,
  t0,
  tmax,
  messages
)

Arguments

tcovar

user-supplied time-varying covariance matrix

tparam

list for instatiating time-varying parameters

forcings

list of forcings

timestep

time discretization interval

census_times
parameters

vector of model parameters

t0
tmax
messages

Value

matrix for time-varying covariates and parameters. If neither a time-varying covariate matrix or parameters, or a timestep is supplied, TCOVAR will just be a matrix with the left and right endpoints of the time-period.