static {gfoRmulaICE} | R Documentation |
Static
Description
This function specifies the static intervention, either treat with a constant value or never treat,
on the treatment variable in data
.
Usage
static(value, data)
Arguments
value |
a number specifying the intervention value. 0 for never treat. |
data |
a data frame containing the observed data. |
Value
a vector containing the intervened values of the same size as the number of rows in data
.
Examples
data <- gfoRmulaICE::compData
always_treat <- static(value = 1, data = data)
[Package gfoRmulaICE version 0.1.0 Index]