moderndid.DDDAggResult#

class moderndid.DDDAggResult(overall_att: float, overall_se: float, aggregation_type: Literal['simple', 'eventstudy', 'group', 'calendar'], egt: ndarray | None = None, att_egt: ndarray | None = None, se_egt: ndarray | None = None, crit_val: float = 1.96, inf_func: ndarray | None = None, inf_func_overall: ndarray | None = None, args: dict = {})[source]#

Bases: NamedTuple

Container for aggregated DDD treatment effect parameters.

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

Attributes:
overall_attfloat

The estimated overall average treatment effect on the treated.

overall_sefloat

Standard error for overall ATT.

aggregation_type{‘simple’, ‘eventstudy’, ‘group’, ‘calendar’}

Type of aggregation performed.

egtnumpy.ndarray, optional

Event times, groups, or calendar times depending on aggregation type.

att_egtnumpy.ndarray, optional

ATT estimates for each element in egt.

se_egtnumpy.ndarray, optional

Standard errors for each element in egt.

crit_valfloat

Critical value for confidence intervals.

inf_funcnumpy.ndarray, optional

Influence function matrix for disaggregated effects.

inf_func_overallnumpy.ndarray, optional

Influence function for the overall ATT.

argsdict

Arguments used for aggregation.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

aggregation_type

Type of aggregation performed.

args

Arguments used for aggregation.

att_egt

ATT estimates for each element in egt.

crit_val

Critical value for confidence intervals.

egt

Event times, groups, or calendar times depending on aggregation type.

inf_func

Influence function matrix for disaggregated effects.

inf_func_overall

Influence function for the overall ATT.

overall_att

Estimated overall average treatment effect on the treated.

overall_se

Standard error for overall ATT.

se_egt

Standard errors for each element in egt.