This function implements a static intervention (i.e., either constant treatment or no treatment over all time points) for the specified intervention variable in the data table newdf.
static(newdf, pool, intvar, intvals, time_name, t)
Arguments
newdf: Data table containing the simulated data at time t.
pool: Data table containing the simulated data at times before t.
intvar: Character string specifying the name of the variable to be intervened on in each round of the simulation.
intvals: A list of length 1. The entry is the value of static treatment to be assigned to intvar.
time_name: Character string specifying the name of the time variable in pool and newdf.
t: Integer specifying the current time index.
Returns
No value is returned. The data table newdf is modified in place.