quad_integrand_q_g_r.Rd
Computes the integrand for adaptive quadrature double integration in InterXshift by combining the models for outcome given mediator and exposure (q_model), the density of the mediator given exposure and covariates (r_model), and the density of the exposure given covariates (g_model).
quad_integrand_q_g_r(
a,
z,
row_data,
covars,
w_names,
q_model,
g_model,
r_model,
exposure,
mediator,
delta,
upper_a,
density_type
)
Numeric matrix, grid points for the exposure.
Numeric matrix, grid points for the mediator.
Data frame, containing the data for a single observation.
Character vector, names of the covariate columns in the data.
Character vector, names of the baseline covariate columns in the data.
Fitted Super Learner model, the outcome model given mediator and exposure.
Fitted Super Learner or parametric model, the exposure density given covariates.
Fitted Super Learner or parametric model, the mediator density given exposure and covariates.
Character, name of the exposure variable in the data.
Character, name of the mediator variable in the data.
Numeric, the amount to shift the exposure variable.
Numeric, the upper bound for the exposure variable.
Character, either "sl" for Super Learner or "hal" for highly adaptive lasso
Numeric matrix, the computed values of the integrand.