"'>SimInf_events"
objectThe argument events must be a data.frame
with the following
columns:
Type of event: 0) exit, 1) enter, 2) internal transfer, and 3) external transfer. Other values are reserved for future event types and not supported by the current default core solver.
Time for the event. Can be either an integer
or a
Date
vector. A Date
vector is coerced to a
numeric vector as days, where t0
determines the offset
to match the time of the events to the model tspan
vector.
The node that the event operates on. Also the source node for
an external transfer event.
1 <= node[i]
<= Number of nodes.
The destination node for an external transfer event.
Should be 0
for the other event types. dest[i] >= 0.
The number of individuals affected by the event. n[i] >= 0.
If n[i]
equals zero, the number of individuals affected by
event[i]
is calculated by summing the number of individuls
with proportion[i]
. 0 <= proportion[i] <= 1.
The column j
in the event matrix E
that
determines the compartments that the event operates on.
The column k
in the shift matrix N
that
determines how individuals in internal transfer and
external transfer events are shifted to enter another
compartment. Should be 0
for the other event types.
SimInf_events(E = NULL, N = NULL, events = NULL, t0 = NULL)
A data.frame
with events.
If events$time
is a Date
vector, then
t0
determines the offset to match the time of the
events to the model tspan
vector, see details. If
events$time
is a numeric vector, then t0
must be
NULL
.
S4 class SimInf_events