diff_diff.StaggeredTripleDiffResults#
- class diff_diff.StaggeredTripleDiffResults[source]#
Bases:
objectResults from Staggered Triple Difference (DDD) estimation.
Implements the Ortiz-Villavicencio & Sant’Anna (2025) estimator for staggered adoption settings with an eligibility dimension.
- overall_att_es#
Paper Eq. (4.14) “overall” ATT: the unweighted mean of the post-treatment event-study effects ES(e). Populated only when
aggregateis"event_study"or"all";Noneotherwise. Distinct fromoverall_att(the Callaway-Sant’Anna simple post-treatment (g,t) average, which is the default headline ATT).- Type:
float, optional
- overall_se_es, overall_t_stat_es, overall_p_value_es, overall_conf_int_es
Standard error, t-statistic, p-value, and confidence interval for
overall_att_es;Nonewhenoverall_att_esisNone.- Type:
optional
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.
to_dict()Convert results to dictionary.
Attributes
alphaanticipationattbase_periodbootstrap_resultscband_crit_valuecoef_varSE / abs(overall ATT).
comparison_group_countsconf_intcontrol_groupepv_diagnosticsepv_thresholdestimation_methodevent_study_effectsgmm_weightsgroup_effectsinfluence_functionsis_significantCheck if overall ATT is significant.
overall_conf_int_esoverall_p_value_esoverall_se_esoverall_t_stat_esp_valuepscore_fallbackpscore_trimsesignificance_starsSignificance stars for overall ATT.
survey_metadatat_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, n_never_enabled, n_eligible, n_ineligible, alpha=0.05, control_group='notyettreated', base_period='varying', anticipation=0, estimation_method='dr', event_study_effects=None, group_effects=None, influence_functions=None, bootstrap_results=None, cband_crit_value=None, pscore_trim=0.01, survey_metadata=None, comparison_group_counts=None, gmm_weights=None, epv_diagnostics=None, epv_threshold=10, pscore_fallback='error', overall_att_es=None, overall_se_es=None, overall_t_stat_es=None, overall_p_value_es=None, overall_conf_int_es=None)#
- 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)
n_never_enabled (int)
n_eligible (int)
n_ineligible (int)
alpha (float)
control_group (str)
base_period (str)
anticipation (int)
estimation_method (str)
influence_functions (np.ndarray | 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)
overall_att_es (float | None)
overall_se_es (float | None)
overall_t_stat_es (float | None)
overall_p_value_es (float | None)
- Return type:
None
- classmethod __new__(*args, **kwargs)#