moderndid.EmfxResult#
- class moderndid.EmfxResult(overall_att: float, overall_se: float, aggregation_type: str, event_times: ndarray | None = None, att_by_event: ndarray | None = None, se_by_event: ndarray | None = None, ci_lower: ndarray | None = None, ci_upper: ndarray | None = None, critical_value: float = 1.96, n_obs: int = 0, estimation_params: dict = {})[source]#
Bases:
NamedTupleContainer for aggregated ETWFE marginal effects.
This class implements the
maketablesplug-in interface for publication-quality tables. See Publication Tables with maketables.Returned by
emfx.- Attributes:
- overall_att
float Overall average treatment effect on the treated.
- overall_se
float Standard error for the overall ATT.
- aggregation_type
str Type of aggregation:
"simple","group","calendar", or"event".- event_times
numpy.ndarrayorNone Event times, groups, or calendar times for non-simple aggregations.
- att_by_event
numpy.ndarrayorNone ATT estimates for each aggregation level.
- se_by_event
numpy.ndarrayorNone Standard errors for each aggregation level.
- ci_lower
numpy.ndarrayorNone Lower confidence interval bounds.
- ci_upper
numpy.ndarrayorNone Upper confidence interval bounds.
- critical_value
float Critical value used for confidence intervals.
- n_obs
int Number of observations in the original regression.
- estimation_params
dict Additional estimation parameters.
- overall_att
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Type of aggregation: "simple", "group", "calendar", or "event".
ATT estimates for each aggregation level.
Lower confidence interval bounds.
Upper confidence interval bounds.
Critical value used for confidence intervals.
Estimation parameters (alpha, vcov_type, etc.).
Event times, groups, or calendar times for non-simple aggregations.
Number of observations in the original regression.
Overall average treatment effect on the treated.
Standard error for the overall ATT.
Standard errors for each aggregation level.