moderndid.didcont.PTEAggteResult#

class moderndid.didcont.PTEAggteResult(overall_att: float, overall_se: float, aggregation_type: Literal['overall', 'dynamic', 'group'], event_times: np.ndarray | None = None, att_by_event: np.ndarray | None = None, se_by_event: np.ndarray | None = None, critical_value: float | None = None, influence_func: dict | None = None, min_event_time: int | None = None, max_event_time: int | None = None, balance_event: int | None = None, att_gt_result: object | None = None)[source]#

Bases: NamedTuple

Container for aggregated panel 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{‘overall’, ‘dynamic’, ‘group’}

Type of aggregation performed.

event_timesnumpy.ndarray, optional

Event/group values depending on aggregation type:

  • For dynamic effects: length of exposure (event time)

  • For group effects: treatment group indicators

att_by_eventnumpy.ndarray, optional

ATT estimates specific to each event time value.

se_by_eventnumpy.ndarray, optional

Standard errors specific to each event time value.

critical_valuefloat, optional

Critical value for uniform confidence bands.

influence_funcdict, optional

Dictionary containing influence functions:

  • overall: Overall ATT influence function

  • by_event: Event-specific influence functions

min_event_timeint, optional

Minimum event time (for dynamic effects).

max_event_timeint, optional

Maximum event time (for dynamic effects).

balance_eventint, optional

Balanced event time threshold.

att_gt_resultobject

Original group-time ATT result object.

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.

att_by_event

ATT estimates specific to each event time value.

att_gt_result

Original group-time ATT result object.

balance_event

Balanced event time threshold.

critical_value

Critical value for uniform confidence bands.

event_times

Event/group values depending on aggregation type.

influence_func

Influence functions for overall and event-specific ATTs.

max_event_time

Maximum event time.

min_event_time

Minimum event time.

overall_att

Estimated overall average treatment effect on the treated.

overall_se

Standard error for overall ATT.

se_by_event

Standard errors specific to each event time value.