Simulate a data matrix from the measurement process of a stochastic epidemic model.

simulate_r_measure(
  censusmat,
  measproc_indmat,
  parameters,
  constants,
  tcovar,
  r_measure_ptr
)

Arguments

censusmat

matrix of compartment counts at observation times

measproc_indmat

logical matrix for which measure variables are observed at which times

parameters

numeric vector of model parameters

constants

numeric vector of constants

tcovar

numeric matrix of time-varying covariate values at observation times.

r_measure_ptr

external pointer to measurement process simulation fcn

Value

matrix with a simulated dataset from a stochastic epidemic model.