integrate_q_g_quant.Rd
Integrate functions m and g when exposure is quantized
integrate_q_g_quant(
av,
at,
covars,
w_names,
q_model,
g_model,
exposure,
g_delta,
m_delta,
n_bins,
density_type,
upper_bound
)
Validation data
Training data
The mediator variable
Covariate names
A character
vector covariates to adjust for.
The training data
A numeric
indicating the magnitude of the shift to be
computed for the exposure A
. This is passed to the internal
Shift amount applied to A in g model
Shift amount applied to A in m model
Number of bins in exposure
Type of density estimation
Upper bound of exposure
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