joint_stoch_shift_est_g_exp.RdEstimate the Exposure Mechanism via Generalized Propensity Score for Two Exposure Variable
joint_stoch_shift_est_g_exp(
exposures,
deltas,
g_learner,
covars,
av,
at,
hn_trunc_thresh,
outcome_type
)A vector of characters labeling the exposure
variables.
A numeric value identifying a shift in the observed
value of the exposure under which observations are to be evaluated.
Object containing a set of instantiated learners from sl3, to be used in fitting an ensemble model.
A character labeling the covariate variables
A dataframe of validation data specific to the fold
A dataframe of training data specific to the fold
Truncation level of the clever covariate used in the adaptive delta method
Type of outcome variable
Whether to adaptively change the delta based on positivity determined from the clever covariate being below the hn_trunc_thresh level
TRUE/FALSE for using multinomial for discretized exposure
A data.table with four columns, containing estimates of the
generalized propensity score at a downshift (g(A - delta | W)), no shift
(g(A | W)), an upshift (g(A + delta) | W), and an upshift of magnitude two
(g(A + 2 delta) | W).
Compute the propensity score (exposure mechanism) for the observed data, including the shift. This gives the propensity score for the observed data (at the observed A) the counterfactual shifted exposure levels (at A - delta, A + delta, and A + 2 * delta).