Description Usage Arguments Details Value
View source: R/fit_mechanisms.R
Estimate the Exposure Mechanism via Generalized Propensity Score
1 2 3 4 5 6 7 8 9 10 |
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 |
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).
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.