| compute_cic_cf | R Documentation |
Applies the CIC mapping to each element of y_10: either the
continuous formula (Theorem~3.1) or the discrete formula (Theorem~4.1)
of Athey and Imbens (2006).
compute_cic_cf(y_10, ec_00, ec_01, discrete = FALSE)
y_10 |
Numeric vector. Treated group, pre-treatment outcomes. |
ec_00, ec_01 |
Empirical CDF objects from |
discrete |
Logical. If |
For the continuous case the counterfactual is
F^{-1}_{01}(F_{00}(y)). For the discrete case each observation
at value x receives the mean of Q_{01}(U) for
U \sim \mathrm{Uniform}[F_{00}(x^-), F_{00}(x)], i.e.,
\int_{F_{00}(x^-)}^{F_{00}(x)} Q_{01}(u)\,du \;/\; \Delta_x
where \Delta_x = F_{00}(x) - F_{00}(x^-) is the probability mass
of Y_{00} at x.
Numeric vector of counterfactual values, one per element of
y_10.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.