SimInf_model {SimInf} | R Documentation |
Create a SimInf_model
Description
Create a SimInf_model
Usage
SimInf_model(
G,
S,
tspan,
events = NULL,
ldata = NULL,
gdata = NULL,
U = NULL,
u0 = NULL,
v0 = NULL,
V = NULL,
E = NULL,
N = NULL,
C_code = NULL
)
Arguments
G |
Dependency graph that indicates the transition rates that
need to be updated after a given state transition has occured.
A non-zero entry in element |
S |
Each column corresponds to a transition, and execution of
state transition |
tspan |
A vector (length >= 1) of increasing time points
where the state of each node is to be returned. Can be either
an |
events |
A |
ldata |
local data for the nodes. Can either be specified as
a |
gdata |
A numeric vector with global data that is common to all nodes. The global data vector is passed as an argument to the transition rate functions and the post time step function. |
U |
The result matrix with the number of individuals in each
disease state in every node ( |
u0 |
The initial state vector. Either a matrix ( |
v0 |
The initial continuous state vector in every node.
( |
V |
The result matrix for the real-valued continous
compartment state ( |
E |
Sparse matrix to handle scheduled events, see
|
N |
Sparse matrix to handle scheduled events, see
|
C_code |
Character vector with optional model C code. If
non-empty, the C code is written to a temporary C-file when
the |