static_binary_off: Turn All Treatment Nodes Off

View source: R/shift.R

static_binary_offR Documentation

Turn All Treatment Nodes Off

Description

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.

Usage

static_binary_off(data, trt)

Arguments

data

A dataframe containing the treatment variables.

trt

The name of the current treatment variable.

Value

A dataframe with all treatment nodes set to 0.

See Also

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

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)


lmtp documentation built on June 27, 2024, 9:10 a.m.