make_stem: Construct a stem object.

View source: R/make_stem.R

make_stemR Documentation

Construct a stem object.

Description

Construct a stem object.

Usage

make_stem(
  stem_object = NULL,
  data = NULL,
  dynamics = NULL,
  measurement_process = NULL
)

Arguments

stem_object

an existing stochastic epidemic model object to which model settings should be added.

data

a matrix/data frame, or a list of matrices/data frames. All columns must be named according to which compartment_strata are measured. The first column must consist of observation times, t_1,...,t_L. If data on all measured compartments are accrued at the same observation times, a single matrix or data frame may be provided. If each compartment in the data was measured at different observation times, a list of matrices or data frames must be provided. Again, the first column of each matrix must consist of observation times, while subsequent columns must be labeled according to which compartments are reflected.

dynamics

A list of objects describing the model dynamics, most straighforwardly generated using the stem_dynamics function.

measurement_process

list of functions to simulate from or evaluate the likelihood of the measurement process. These are most easily generated using the stem_measure function.

Value

returns a stem object.


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