diff_diff.HonestDiDResults
- class diff_diff.HonestDiDResults[source]
Bases:
objectResults from Honest DiD sensitivity analysis.
Contains bounds on the treatment effect under the specified restrictions on violations of parallel trends.
- original_results
The original estimation results object.
- Type:
Any
- __init__(lb, ub, ci_lb, ci_ub, M, method, original_estimate, original_se, alpha=0.05, ci_method='FLCI', original_results=None, event_study_bounds=None)
Methods
__init__(lb, ub, ci_lb, ci_ub, M, method, ...)Print summary to stdout.
summary()Generate formatted summary of sensitivity analysis results.
Convert results to DataFrame.
to_dict()Convert results to dictionary.
Attributes
Width of the confidence interval.
Width of the identified set.
Check if CI excludes zero (effect is robust to violations).
Return significance indicator if robust CI excludes zero.
- property significance_stars: str
Return significance indicator if robust CI excludes zero.
Note: Unlike point estimation, partial identification does not yield a single p-value. This returns “*” if the robust CI excludes zero at the specified alpha level, indicating the effect is robust to the assumed violations of parallel trends.
- summary()[source]
Generate formatted summary of sensitivity analysis results.
- Returns:
Formatted summary.
- Return type:
- __init__(lb, ub, ci_lb, ci_ub, M, method, original_estimate, original_se, alpha=0.05, ci_method='FLCI', original_results=None, event_study_bounds=None)