diff_diff.GroupTimeEffect#
- class diff_diff.GroupTimeEffect[source]#
Bases:
objectTreatment effect for a specific group-time combination.
- group#
The treatment cohort (first treatment period).
- Type:
any
- time#
The time period.
- Type:
any
- skip_reason#
Nonefor an estimable cell; otherwise a machine-readable reason the cell is non-estimable ("missing_period","zero_treated_control","zero_weight_mass","non_finite_regression") andeffect/seare NaN. Non-estimable cells are excluded from all aggregation.- Type:
str or None
Methods
__init__(group, time, effect, se, t_stat, ...)Attributes
is_significantCheck if effect is significant at 0.05 level.
significance_starsReturn significance stars based on p-value.
t_statp_valueconf_int- __init__(group, time, effect, se, t_stat, p_value, conf_int, n_treated, n_control, skip_reason=None)#
- classmethod __new__(*args, **kwargs)#