This internal function executes the intervention of interest on the specified intervention variable
in the data table newdf
.
intfunc(newdf, pool, intervention, intvar, int_time, time_name, t)
No value is returned. The data table newdf
is modified in place.
Data table containing the simulated data at time \(t\).
Data table containing the simulated data at times before \(t\).
List, whose elements are lists of vectors. Each vector contains a function implementing a particular intervention on a single variable, optionally followed by one or more "intervention values" (i.e., integers used to specify the treatment regime).
Character string specifying the name of the variable to be intervened on in each round of the simulation.
Vector specifying the time points in which the intervention is applied.
Character string specifying the name of the time variable in pool
and newdf
.
Integer specifying the current time index.