integrate_psi_g.Rd
Integrate Psi G for the Da part of the EIF for stochastic mediation
integrate_psi_g(
at,
av,
covars,
w_names,
q_model,
r_model,
g_model,
exposure,
mediator,
delta,
integration_method,
n_samples,
density_type
)
Training data
Validation
Covariates used in the m model
Covariate used in the g model
A character
vector covariates to adjust for.
Mediator density estimator
The training data
A numeric
indicating the magnitude of the shift to be
computed for the exposure A
. This is passed to the internal
The mediator variable name
shift_additive
and is currently limited to additive shifts.
Object containing a set of instantiated learners from the sl3, to be used in fitting an ensemble model.
Type of integration method to be used
Number of MC samples for MC integration
Type of density estimation
A data.table
with two columns, containing estimates of the
outcome mechanism at the natural value of the exposure Q(A, W) and an
upshift of the exposure Q(A + delta, W).
Does the double integration as described in lemma 1