R/test_de.R
test_de.Rd
Hypothesis test of direct effect with mediated stochastic interventions using the multiplier bootstrap
A matrix
, data.frame
, or similar corresponding to a
set of baseline covariates.
A numeric
vector corresponding to a treatment variable. The
parameter of interest is defined as a location shift of this quantity.
A numeric
vector, matrix
, data.frame
, or
similar corresponding to a set of mediators (on the causal pathway between
the intervention A and the outcome Y).
A numeric
vector corresponding to an outcome variable.
A numeric
vector of observation-level IDs, allowing for
observational units to be related through a hierarchical structure. The
default is to assume all units are IID. When repeated IDs are included,
both the cross-validation procedures used for estimation and inferential
procedures respect these IDs.
A numeric
of values giving the varous degrees of
shift in the intervention to be used in defining the causal quantity of
interest. In the case of binary interventions, this takes the form of an
incremental propensity score shift, acting as a multiplier of the odds with
which a given observational unit receives the intervention (EH Kennedy,
2018, JASA; doi:10.1080/01621459.2017.1422737).
A character
identifying the type of multipliers to
be used in the multiplier bootstrap. Choices are "rademacher"
or
"gaussian"
, with the default being the former.
A numeric
indicating the (1 - alpha) level of the
simultaneous confidence band to be computed around the estimates of the
direct effect. The error level of the test reported in the p-value returned
is simply alpha, i.e., one less this quantity.
A Stack
(or other learner class that
inherits from Lrnr_base
), containing a single or set of
instantiated learners from sl3, to be used in fitting the propensity
score, i.e., g = P(A | W).
A Stack
(or other learner class that
inherits from Lrnr_base
), containing a single or set of
instantiated learners from sl3, to be used in fitting a propensity
score that conditions on the mediators, i.e., e = P(A | Z, W).
A Stack
(or other learner class that
inherits from Lrnr_base
), containing a single or set of
instantiated learners from sl3, to be used in fitting the outcome
regression, i.e., m(A, Z, W).
A Stack
(or other learner class that
inherits from Lrnr_base
), containing a single or set of
instantiated learners from sl3, to be used in a regression of a
pseudo-outcome on the baseline covariates, i.e.,
phi(W) = E[m(A = 1, Z, W) - m(A = 0, Z, W) | W).
A numeric
specifying the number of folds to be
created for cross-validation. Use of cross-validation / cross-fitting
allows for entropy conditions on the AIPW estimator to be relaxed. Note:
for compatibility with make_folds
, this value must
be greater than or equal to 2; the default is to create 10 folds.
A numeric
scalar giving the number of repetitions of
the multipliers to be used in computing the multiplier bootstrap.