InterXshift.Rd
Under a fixed shift to exposures identify using g-computation the joint shift of pairwise exposures in a mixed exposure compared to the additive individual shifts. Positive values indicate synergy and negative antagonism, get the top synergy and antagonism results and use CV-TMLE to efficiently estimate the interaction target parameter.
InterXshift(
w,
a,
y,
deltas,
estimator = "tmle",
fluctuation = "standard",
var_sets = NULL,
pi_learner = NULL,
mu_learner = NULL,
g_learner = NULL,
e_learner = NULL,
zeta_learner = NULL,
n_folds = 2,
outcome_type = "continuous",
parallel = TRUE,
parallel_type = "multi_session",
num_cores = 2,
seed = seed,
hn_trunc_thresh = 10,
adaptive_delta = FALSE,
discover_only = FALSE,
top_n = 2
)
A matrix
, data.frame
, or similar containing a set of
baseline covariates. These variables are measured before exposures.
matrix
, data.frame
, or similar containing individual or
multiple exposures.
numeric
vector of observed outcomes.
A numeric
value indicating the shift in exposures to
define the target parameter, with respect to the scale of the exposures (A). If adaptive_delta
is true, these values will be reduced.
The type of estimator to fit: "tmle"
for targeted
maximum likelihood estimation, or "onestep"
for a one-step estimator.
Method used in the targeting step for TML estimation: "standard" or "weighted". This determines where to place the auxiliary covariate in the logistic tilting regression.
A list specifying variable sets for deterministic InterXshift usage. Example: var_sets <- c("A_1", "A_1-Z_2") where the analyst provides variable sets for exposures, exposure-mediator, or exposure-covariate relationships.
Learners for fitting Super Learner ensembles to densities via sl3.
Learners for fitting Super Learner ensembles to the outcome model via sl3.
Learners for fitting Super Learner ensembles to the g-mechanism g(A|W) (a probability estimator, not a density estimator) for mediation via sl3.
Learners for fitting Super Learner ensembles to the e-mechanism g(A|Z,W) (a probability estimator, not a density estimator) for mediation via sl3.
Learners for fitting Super Learner ensembles to the outcome model via sl3..
Number of folds to use in cross-validation, default is 2.
Data type of the outcome, default is "continuous".
Whether to parallelize across cores (default: TRUE).
Type of parallelization to use if parallel is TRUE: "multi_session" (default), "multicore", or "sequential".
Number of CPU cores to use in parallelization (default: 2).
numeric
seed value to be passed to all functions.
Truncation level for the clever covariate (default: 10).
If TRUE, reduces the user-specified delta until the Hn calculated for a shift does not have any observation greater than hn_trunc_thresh (default: FALSE).
matrix
, data.frame
, or similar containing individual or
multiple mediators (optional).
An S3 object of class InterXshift
containing the results of the
procedure to compute a TML or one-step estimate of the counterfactual mean
under a modified treatment policy that shifts a continuous-valued exposure
by a scalar amount delta
. These exposures are data-adaptively
identified using the CV-TMLE procedure.