cde_did_aipw | R Documentation |
Initializes the specification of a difference-in-differences estimator for the CDE based on an augmented inverse probability weighting.
cde_did_aipw(
base_mediator,
trim = c(0.01, 0.99),
aipw_blip = TRUE,
on_treated = FALSE
)
base_mediator |
The (unquoted) name of the variable that measures the mediator at baseline. |
trim |
A vector of length 2 indicating what quantiles of the
propensity scores should be trimmed. By default this is |
aipw_blip |
If |
on_treated |
If |
This function, unlike other CDE estimators in the package, only
returns the estimated effects of the first treatment variable.
These effects are conditional on the baseline value of the mediator
(base_mediator
) when on_treated
is TRUE
. A marginalized CDE
estimand is also estimated. When on_treated
is FALSE
, these
estimates are conditional on the entire "treated" history.
Identification requirements are slightly different between these
two cases. When on_treated
is FALSE
, the confounders for the
mediator cannot be affected by treatment. See Blackwell et al
(2022) for more information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.