integrate_m_g.Rd
Integrate functions m and g
integrate_m_g(
av,
at,
covars,
w_names,
q_model,
g_model,
exposure,
g_delta,
m_delta
)
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
Amount of delta applied to exposure in g model
Amount of delta applied to exposure in m model
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