compute_cic_cf: Compute CIC counterfactual values

View source: R/ecdf_utils.R

compute_cic_cfR Documentation

Compute CIC counterfactual values

Description

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).

Usage

compute_cic_cf(y_10, ec_00, ec_01, discrete = FALSE)

Arguments

y_10

Numeric vector. Treated group, pre-treatment outcomes.

ec_00, ec_01

Empirical CDF objects from make_ecdf.

discrete

Logical. If TRUE, use the discrete CIC formula (Theorem~4.1). Default FALSE.

Details

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.

Value

Numeric vector of counterfactual values, one per element of y_10.


sccic documentation built on April 10, 2026, 5:07 p.m.