View source: R/interventions.R
natural | R Documentation |
This function implements the natural course (i.e., model-based simulation) for the specified
intervention variable in the data table newdf. Because newdf
is initiated with the
natural course, this function does nothing.
natural(newdf, pool, intvar, intvals, time_name, t)
newdf |
Data table containing the simulated data at time |
pool |
Data table containing the simulated data at times before |
intvar |
Character string specifying the name of the variable to be intervened on in each round of the simulation. |
intvals |
A list of user-specified values for the intervention. |
time_name |
Character string specifying the name of the time variable in |
t |
Integer specifying the current time index. |
No value is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.