moderndid.DDDPanelResult#

class moderndid.DDDPanelResult(att: float, se: float, uci: float, lci: float, boots: ndarray | None, att_inf_func: ndarray | None, did_atts: dict, subgroup_counts: dict, args: dict)[source]#

Bases: NamedTuple

Container for DDD panel estimation results.

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

Attributes:
attfloat

The DDD point estimate for the ATT.

sefloat

Standard error of the ATT estimate.

ucifloat

Upper bound of the 95% confidence interval.

lcifloat

Lower bound of the 95% confidence interval.

bootsnumpy.ndarray or None

Bootstrap draws if bootstrap inference was used.

att_inf_funcnumpy.ndarray or None

Influence function if requested.

did_attsdict

Individual DiD ATT estimates for each comparison.

subgroup_countsdict

Number of units in each subgroup.

argsdict

Arguments used for estimation.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

args

Arguments used for estimation.

att

DDD point estimate for the ATT.

att_inf_func

Influence function if requested.

boots

Bootstrap draws if bootstrap inference was used.

did_atts

Individual DiD ATT estimates for each comparison.

lci

Lower bound of the 95% confidence interval.

se

Standard error of the ATT estimate.

subgroup_counts

Number of units in each subgroup.

uci

Upper bound of the 95% confidence interval.