simulate_r_measure: Simulate a data matrix from the measurement process of a...

View source: R/RcppExports.R

simulate_r_measureR Documentation

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

Description

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

Usage

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.


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