natural: Natural Course Intervention

Description Usage Arguments Value

View source: R/interventions.R

Description

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.

Usage

1
natural(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 user-specified values for the intervention.

time_name

Character string specifying the name of the time variable in pool and newdf.

t

Integer specifying the current time index.

Value

No value is returned.


gfoRmula documentation built on July 13, 2021, 9:07 a.m.