est_Q_w_shifted_mediation.RdEstimate the Outcome Mechanism with Shifted A and Z
est_Q_w_shifted_mediation(
  exposure,
  mediator,
  delta,
  mu_learner,
  covars,
  av,
  at,
  upper_bound = upper_bound,
  lower_bound = lower_bound,
  outcome_type = outcome_type
)A character vector of exposures to be shifted.
The mediator variable
A numeric indicating the magnitude of the shift to be
computed for the exposure A. This is passed to the internal
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.
A character vector covariates to adjust for.
A dataframe of validation data specific to the fold
A dataframe of training data specific to the fold
Upper bound of exposure
Lower bound of exposure
Variable type of the outcome
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).
Compute the outcome regression for the observed data, including with the shift imposed by the intervention. This returns the outcome regression for the observed data (at A) and under the counterfactual shift shift (at A + delta).