diff_diff.TripleDifferenceResults#
- class diff_diff.TripleDifferenceResults[source]#
Bases:
objectResults from Triple Difference (DDD) estimation.
Provides access to the estimated average treatment effect on the treated (ATT), standard errors, confidence intervals, and diagnostic information.
- att#
Average Treatment effect on the Treated (ATT). This is the effect on units in the treated group (G=1) and eligible partition (P=1) after treatment (T=1).
- Type:
- estimation_method#
Estimation method used: “dr” (doubly robust), “reg” (regression adjustment), or “ipw” (inverse probability weighting).
- Type:
Methods
__init__(att, se, t_stat, p_value, conf_int, ...)epv_summary([show_all])Return per-subgroup EPV diagnostics as a DataFrame.
print_summary([alpha])Print the summary to stdout.
summary([alpha])Generate a formatted summary of the estimation results.
to_dataframe()Convert results to a pandas DataFrame.
to_dict()Convert results to a dictionary.
Attributes
cluster_namecovariate_balanceepv_diagnosticsepv_thresholdgroup_meansinference_methodis_significantCheck if the ATT is statistically significant at the alpha level.
n_bootstrapn_clusterspscore_fallbackpscore_statsr_squaredsignificance_starsReturn significance stars based on p-value.
survey_metadatavcov_type- __init__(att, se, t_stat, p_value, conf_int, n_obs, n_treated_eligible, n_treated_ineligible, n_control_eligible, n_control_ineligible, estimation_method, alpha=0.05, group_means=None, pscore_stats=None, r_squared=None, covariate_balance=None, inference_method='analytical', vcov_type='hc1', cluster_name=None, n_bootstrap=None, n_clusters=None, survey_metadata=None, epv_diagnostics=None, epv_threshold=10, pscore_fallback='error')#
- Parameters:
att (float)
se (float)
t_stat (float)
p_value (float)
n_obs (int)
n_treated_eligible (int)
n_treated_ineligible (int)
n_control_eligible (int)
n_control_ineligible (int)
estimation_method (str)
alpha (float)
r_squared (float | None)
covariate_balance (DataFrame | None)
inference_method (str)
vcov_type (str)
cluster_name (str | None)
n_bootstrap (int | None)
n_clusters (int | None)
survey_metadata (Any | None)
epv_threshold (float)
pscore_fallback (str)
- Return type:
None
- classmethod __new__(*args, **kwargs)#