integrate_psi_g_discrete.Rd
Integrate Psi G for the Da part of the EIF for stochastic mediation when A is quartiles
integrate_psi_g_discrete(
av,
at,
covars,
w_names,
q_model,
r_model,
g_model,
exposure,
mediator,
delta,
n_bins,
n_samples = 1000,
method = "MC",
mediator_quantized,
density_type,
upper_bound,
use_multinomial
)
Validation data
Training data
Covars for the outcome regression model
w_names for A|W
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.
Number of bins exposure is discretrized
Number of samples used in MC integration
Integration method
If mediator is discretized
Type of density estimation
Upper bound of exposure
if multinomial is used
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