moderndid.DDDMultiPeriodResult#
- class moderndid.DDDMultiPeriodResult(att: ndarray, se: ndarray, uci: ndarray, lci: ndarray, groups: ndarray, times: ndarray, glist: ndarray, tlist: ndarray, inf_func_mat: ndarray, n: int, args: dict, unit_groups: ndarray)[source]#
Bases:
NamedTupleContainer for multi-period DDD estimation results.
This class implements the
maketablesplug-in interface for publication-quality tables. See Publication Tables with maketables.- Attributes:
- att
numpy.ndarray Array of ATT(g,t) point estimates.
- se
numpy.ndarray Array of standard errors for each ATT(g,t).
- uci
numpy.ndarray Array of upper confidence interval bounds.
- lci
numpy.ndarray Array of lower confidence interval bounds.
- groups
numpy.ndarray Array of treatment cohort identifiers for each estimate.
- times
numpy.ndarray Array of time period identifiers for each estimate.
- glist
numpy.ndarray Unique treatment cohorts.
- tlist
numpy.ndarray Unique time periods.
- inf_func_mat
numpy.ndarray Matrix of influence functions (n_units x n_estimates).
- n
int Number of units.
- args
dict Arguments used for estimation.
- unit_groups
numpy.ndarray Array of treatment group for each unit (length n).
- att
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Arguments used for estimation.
Array of ATT(g,t) point estimates.
Unique treatment cohorts.
Array of treatment cohort identifiers for each estimate.
Matrix of influence functions (n_units x n_estimates).
Array of lower confidence interval bounds.
Number of units.
Array of standard errors for each ATT(g,t).
Array of time period identifiers for each estimate.
Unique time periods.
Array of upper confidence interval bounds.
Array of treatment group for each unit.