
Last chance! 50% off unlimited learning
Sale ends in
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)
A dataframe with all treatment nodes set to 0.
A dataframe containing the treatment variables.
The name of the current treatment variable.
lmtp_tmle()
, lmtp_sdr()
# \donttest{
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)
# }
Run the code above in your browser using DataLab