powered by
This function specifies the static intervention, either treat with a constant value or never treat, on the treatment variable in data.
data
static(value, data)
a vector containing the intervened values of the same size as the number of rows in data.
a number specifying the intervention value. 0 for never treat.
a data frame containing the observed data.
data <- gfoRmulaICE::compData always_treat <- static(value = 1, data = data)
Run the code above in your browser using DataLab