ipsi: IPSI Function Factory

View source: R/shift.R

ipsiR Documentation

IPSI Function Factory

Description

A function factory that returns a shift function for increasing or decreasing the probability of exposure when exposure is binary.

Usage

ipsi(delta)

Arguments

delta

[numeric(1)]
A risk ratio between 0 and Inf.

Value

A shift function.

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 = ipsi(0.5), outcome_type = "continuous", folds = 2)


nt-williams/lmtp documentation built on July 4, 2024, 4:01 a.m.