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
Methods
__init__(lb, ub, ci_lb, ci_ub, M, method, ...)print_summary()Print summary to stdout.
summary()Generate formatted summary of sensitivity analysis results.
to_dataframe()Convert results to DataFrame.
to_dict()Convert results to dictionary.
Attributes
ci_widthWidth of the confidence interval.
df_surveyevent_study_boundsidentified_set_widthWidth of the identified set.
is_significantCheck if CI excludes zero (effect is robust to violations).
post_periods_usedpre_periods_usedsignificance_starsReturn significance indicator if robust CI excludes zero.
survey_metadatatarget_label- __init__(lb, ub, ci_lb, ci_ub, M, method, original_estimate, original_se, alpha=0.05, ci_method='FLCI', target_label='Equal-weight avg over post horizons', pre_periods_used=None, post_periods_used=None, original_results=None, event_study_bounds=None, survey_metadata=None, df_survey=None)#
- classmethod __new__(*args, **kwargs)#