est_g_exp {txshift} | R Documentation |
Estimate the Exposure Mechanism via Generalized Propensity Score
Description
Estimate the Exposure Mechanism via Generalized Propensity Score
Usage
est_g_exp(
A,
W,
delta = 0,
samp_weights = rep(1, length(A)),
fit_type = c("hal", "sl"),
sl_learners_density = NULL,
haldensify_args = list(grid_type = "equal_range", lambda_seq = exp(seq(-1, -13,
length = 300)))
)
Arguments
A |
A |
W |
A |
delta |
A |
samp_weights |
A |
fit_type |
A |
sl_learners_density |
Object containing a set of instantiated learners from sl3, to be used in fitting an ensemble model. |
haldensify_args |
A |
Details
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).
Value
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).