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: NamedTuple

Container for aggregated ETWFE marginal effects.

This class implements the maketables plug-in interface for publication-quality tables. See Publication Tables with maketables.

Returned by emfx.

Attributes:
overall_attfloat

Overall average treatment effect on the treated.

overall_sefloat

Standard error for the overall ATT.

aggregation_typestr

Type of aggregation: "simple", "group", "calendar", or "event".

event_timesnumpy.ndarray or None

Event times, groups, or calendar times for non-simple aggregations.

att_by_eventnumpy.ndarray or None

ATT estimates for each aggregation level.

se_by_eventnumpy.ndarray or None

Standard errors for each aggregation level.

ci_lowernumpy.ndarray or None

Lower confidence interval bounds.

ci_uppernumpy.ndarray or None

Upper confidence interval bounds.

critical_valuefloat

Critical value used for confidence intervals.

n_obsint

Number of observations in the original regression.

estimation_paramsdict

Additional estimation parameters.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

aggregation_type

Type of aggregation: "simple", "group", "calendar", or "event".

att_by_event

ATT estimates for each aggregation level.

ci_lower

Lower confidence interval bounds.

ci_upper

Upper confidence interval bounds.

critical_value

Critical value used for confidence intervals.

estimation_params

Estimation parameters (alpha, vcov_type, etc.).

event_times

Event times, groups, or calendar times for non-simple aggregations.

n_obs

Number of observations in the original regression.

overall_att

Overall average treatment effect on the treated.

overall_se

Standard error for the overall ATT.

se_by_event

Standard errors for each aggregation level.