| conformal_inference | R Documentation |
Implements the permutation-based conformal inference procedure of
Chernozhukov, Wuthrich & Zhu (2021, JASA). The test inverts a sharp null
H_0: \tau = \tau_0 by imputing the treated post-treatment
counterfactual as Y_{1t} - \tau_0, re-estimating the counterfactual
proxy on all T periods (imposing the null), and computing a
moving-block permutation p-value from the estimated residuals. A confidence
interval is obtained by test inversion over a grid of candidate \tau_0.
conformal_inference(
fit,
tau0 = 0,
q = 1,
alternative = c("two.sided", "greater", "less"),
ci = TRUE,
level = 0.95,
grid = NULL,
n_grid = 200L,
grid_mult = 4,
...
)
fit |
A |
tau0 |
Null value of the ATT for the reported p-value (default 0). |
q |
Exponent of the |
alternative |
|
ci |
Logical; construct a confidence interval by test inversion
(default |
level |
Confidence level for the interval (default 0.95). |
grid |
Optional numeric vector of candidate |
n_grid |
Number of grid points when |
grid_mult |
Half-width multiplier when |
... |
Unused. |
Supported for sharp (single-cohort) fits with method in
c("scm", "sdid", "gsc", "mc", "si"). Staggered, multi-arm, and tasc
fits are not supported (use sdid_inference(), gsc_inference(), or
si_inference() instead).
A list of class c("conformal_inference", "coresynth_inference")
with estimate, se (NA; conformal has no SE), p_value (at tau0),
ci_lower, ci_upper, method ("conformal"), n_controls,
alternative, staggered (FALSE), plus tau0, q, grid, and
p_grid (p-values along the grid). Compatible with tidy() / glance().
Chernozhukov, V., Wuthrich, K., & Zhu, Y. (2021). An Exact and Robust Conformal Inference Method for Counterfactual and Synthetic Controls. Journal of the American Statistical Association, 116(536), 1849-1864.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.