diff_diff.changes_in_changes_results.ChangesInChangesResults#
- class diff_diff.changes_in_changes_results.ChangesInChangesResults[source]#
Bases:
objectResults for
ChangesInChangesandQDiD.The headline
att/se/t_stat/p_value/conf_intfields carry the mean effect;quantile_effectsis a DataFrame with one row per requested quantile (columnsquantile,qte,se,t_stat,p_value,conf_low,conf_high). All inference derives from the bootstrap (replicate-SD standard errors, symmetric normal-approximation intervals at levelalpha); withn_bootstrap=0every inference field is NaN.q_lower/q_upperbound the point-identified interior quantile range for unconditional CiC fits (Athey-Imbens eq. 17; NaN for QDiD and for covariate fits, where the unconditional bounds are not the relevant objects).sup_t_critis the qte package’s sup-t critical value for uniform bands - computed at a FIXED 95% level regardless ofalpha(qte parity); seeuniform_bands().covariatesrecords the covariate columns used by the conditional (quantile-regression) fit, orNonefor unconditional fits.Methods
__init__(att, se, t_stat, p_value, conf_int, ...)print_summary()Print
summary()to stdout.summary()Fixed-width text summary: headline ATT block plus the quantile-effects table.
to_dataframe([level])Return the quantile-effects table or the one-row ATT summary.
to_dict()Flat headline dictionary (ATT inference, ranges, sizes, bootstrap metadata).
uniform_bands()Simultaneous (sup-t) confidence bands over the quantile grid.
Attributes
alphacovariatesis_significantWhether the headline ATT is significant at level
alpha(False on NaN).significance_starsSignificance stars for the headline ATT p-value ('' when NaN).
attset_statp_valueconf_intquantile_effectsq_lowerq_uppersup_t_critn_obscell_sizesn_bootstrapn_bootstrap_validpanelestimatorquantiles- __init__(att, se, t_stat, p_value, conf_int, quantile_effects, q_lower, q_upper, sup_t_crit, n_obs, cell_sizes, n_bootstrap, n_bootstrap_valid, panel, estimator, quantiles, alpha=0.05, covariates=None)#
- classmethod __new__(*args, **kwargs)#