- transitions
character vector containing transitions on the form "X ->
... -> Y". The left (right) side is the initial (final)
state and the propensity is written in between the
->-signs. The special symbol @ is reserved for the empty
set. For example, transitions = c("S -> k1*S*I -> I", "I ->
k2*I -> R") expresses a SIR model.
- compartments
contains the names of the involved compartments, for
example, compartments = c("S", "I", "R").
- pars
a character vector containing the names of the parameters.
- obsProcess
data.frame determining the observation process. Columns must be in the order:
dataNames, dist, p1, p2. dataNames is a character
denoting the name of the variable that will be output from the observation process; dist
is a character specifying the distribution of the observation process (must be one of
"unif", "pois", "norm" or "binom" at the current time); p1 is the first parameter
(the lower bound in the case of "unif", the rate in the case of "pois", the mean in the case of
"norm" or the size in the case of "binom"); and finally p2 is the second parameter
(the upper bound in the case of "unif", NA in the case of "pois", the standard deviation in
the case of "norm", and prob in the case of "binom").
- addVars
a character vector where the names specify the additional variables to be added to the
function call. These can be used to specify variables that can be used for
e.g. additional stopping criteria.
- stopCrit
A character vector including additional stopping criteria for rejecting
simulations early. These will be inserted within if(CRIT){out[0] = 0; return out;} statements
within the underlying Rcpp code, which a return value of 0 corresponds to rejecting
the simulation. Variables in CRIT must match either those in compartments
and/or addVars.
- tspan
A logical determining whether to return time series counts or not.
- incidence
A logical specifying whether to return incidence curves in addition to counts.
- afterTstar
A character containing code to insert after each new event time is
generated.
- PF
A logical determining whether to compile the code for use in a particle filter.
- runFromR
logical determining whether code is to be compiled to run directly in R,
or whether to be compiled as an XPtr object for use in Rcpp.