diff_diff.CallawaySantAnnaResults#
- class diff_diff.CallawaySantAnnaResults[source]#
Bases:
objectResults from Callaway-Sant’Anna (2021) staggered DiD estimation.
This class stores group-time average treatment effects ATT(g,t) and provides methods for aggregation into summary measures.
- n_control_units#
Number of never-treated units (excludes not-yet-treated dynamic controls).
- Type:
Methods
__init__(group_time_effects, overall_att, ...)epv_summary([show_all])Return per-cohort EPV diagnostics as a DataFrame.
print_summary([alpha])Print summary to stdout.
summary([alpha])Generate formatted summary of estimation results.
to_dataframe([level])Convert results to DataFrame.
Attributes
alphaanticipationattbase_periodbootstrap_resultscband_crit_valuecoef_varSE / abs(overall ATT).
conf_intcontrol_groupepv_diagnosticsepv_thresholdevent_study_vcovevent_study_vcov_indexinfluence_functionsis_significantCheck if overall ATT is significant.
p_valuepanelpscore_fallbacksesignificance_starsSignificance stars for overall ATT.
survey_metadatat_statoverall_t_stat- __init__(group_time_effects, overall_att, overall_se, overall_t_stat, overall_p_value, overall_conf_int, groups, time_periods, n_obs, n_treated_units, n_control_units, alpha=0.05, control_group='never_treated', base_period='varying', anticipation=0, panel=True, event_study_effects=None, group_effects=None, influence_functions=None, event_study_vcov=None, event_study_vcov_index=None, bootstrap_results=None, cband_crit_value=None, pscore_trim=0.01, survey_metadata=None, epv_diagnostics=None, epv_threshold=10, pscore_fallback='error')#
- Parameters:
overall_att (float)
overall_se (float)
overall_t_stat (float)
overall_p_value (float)
n_obs (int)
n_treated_units (int)
n_control_units (int)
alpha (float)
control_group (str)
base_period (str)
anticipation (int)
panel (bool)
influence_functions (np.ndarray | None)
event_study_vcov (np.ndarray | None)
event_study_vcov_index (list | None)
bootstrap_results (CSBootstrapResults | None)
cband_crit_value (float | None)
pscore_trim (float)
survey_metadata (Any | None)
epv_diagnostics (Dict[Tuple[Any, Any], Dict[str, Any]] | None)
epv_threshold (float)
pscore_fallback (str)
- Return type:
None
- classmethod __new__(*args, **kwargs)#