static_binary_off | R Documentation |
A pre-packaged shift function for use with provided estimators when the exposure is binary. Used to estimate the population intervention effect when all treatment variables are set to 0.
static_binary_off(data, trt)
data |
A dataframe containing the treatment variables. |
trt |
The name of the current treatment variable. |
A dataframe with all treatment nodes set to 0.
lmtp_tmle()
, lmtp_sdr()
, lmtp_sub()
, lmtp_ipw()
data("iptwExWide", package = "twang")
a <- paste0("tx", 1:3)
baseline <- c("gender", "age")
tv <- list(c("use0"), c("use1"), c("use2"))
lmtp_sdr(iptwExWide, a, "outcome", baseline = baseline, time_vary = tv,
shift = static_binary_off, outcome_type = "continuous", folds = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.