static | R Documentation |
This function specifies the static intervention, either treat with a constant value or never treat,
on the treatment variable in data
.
static(value, data)
value |
a number specifying the intervention value. 0 for never treat. |
data |
a data frame containing the observed data. |
a vector containing the intervened values of the same size as the number of rows in data
.
data <- gfoRmulaICE::compData
always_treat <- static(value = 1, data = data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.