static_binary_off function

Turn All Treatment Nodes Off

Turn All Treatment Nodes Off

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)

Arguments

  • data: A dataframe containing the treatment variables.
  • trt: The name of the current treatment variable.

Returns

A dataframe with all treatment nodes set to 0.

Examples

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)

See Also

lmtp_tmle(), lmtp_sdr(), lmtp_sub(), lmtp_ipw()