Honest DiD#
The Honest DiD module provides sensitivity analysis tools for potential violations of the parallel trends assumption, following Rambachan and Roth (2023). This allows researchers to assess the robustness of their DiD estimates to various forms of pre-trend violations.
Main Functions#
Compute sensitivity analysis for event study estimates. |
|
Construct original (non-robust) confidence set. |
|
Perform sensitivity analysis using relative magnitude bounds. |
|
Perform sensitivity analysis using smoothness restrictions. |
Confidence Intervals#
ARP Confidence Intervals#
Compute Andrews-Roth-Pakes (ARP) confidence interval with no nuisance parameters. |
|
Compute Andrews-Roth-Pakes (ARP) confidence interval with nuisance parameters. |
|
Compute least favorable critical value. |
|
Compute the truncation bounds for the test statistic using dual approach with bisection. |
|
Perform Andrews-Roth-Pakes (ARP) test of moment inequality with nuisance parameters. |
|
Test whether \(\bar{\theta}\) lies in the identified set using the ARP conditional approach. |
|
Hybrid test combining fixed-length confidence interval (FLCI) constraints with ARP conditional test. |
|
Conditional-least favorable (LF) hybrid test. |
Fixed-Length Confidence Intervals#
Compute fixed-length confidence intervals under smoothness restrictions. |
|
Compute quantile of folded normal distribution \(cv_{\alpha}(t)\). |
|
Find worst-case bias subject to standard deviation constraint \(h\). |
|
Find the minimum achievable standard deviation \(h\). |
Restriction Types#
Relative Magnitude Restrictions#
Compute conditional confidence set for \(\Delta^{RM}(\bar{M})\). |
|
Compute identified set for \(\Delta^{RM}(\bar{M})\). |
|
Compute conditional confidence set for \(\Delta^{RM}(\bar{M})\) with bias sign restrictions. |
|
Compute identified set for \(\Delta^{RMB}(\bar{M})\). |
|
Compute conditional confidence set for \(\Delta^{RMI}(\bar{M})\). |
|
Compute identified set for \(\Delta^{RMI}(\bar{M})\). |
Smoothness Restrictions#
Compute conditional confidence set for \(\Delta^{SD}(M)\). |
|
Compute identified set for \(\Delta^{SD}(M)\). |
|
Compute conditional confidence set for \(\Delta^{SDB}(M)\). |
|
Compute identified set for \(\Delta^{SDB}(M)\). |
|
Compute conditional confidence set for \(\Delta^{SDI}(M)\). |
|
Compute identified set for \(\Delta^{SDI}(M)\). |
Combined Restrictions#
Compute conditional confidence set for \(\Delta^{SDRM}(\bar{M})\). |
|
Compute identified set for \(\Delta^{SDRM}(\bar{M})\). |
|
Compute conditional confidence set for \(\Delta^{SDRMB}(\bar{M})\). |
|
Compute identified set for \(\Delta^{SDRMB}(\bar{M})\). |
|
Compute conditional confidence set for \(\Delta^{SDRMM}(\bar{M})\). |
|
Compute identified set for \(\Delta^{SDRMM}(\bar{M})\). |
Result Objects#
Container for honest_did sensitivity analysis results. |
|
Container for original confidence set assuming exact parallel trends. |
|
Container for a single sensitivity analysis result. |
|
Container for fixed-length confidence interval results. |
|
Container for APR confidence interval results. |
|
Container for ARP confidence interval results with nuisance parameters. |