diff_diff.TwoStageBootstrapResults#

class diff_diff.TwoStageBootstrapResults[source]#

Bases: object

Results from TwoStageDiD bootstrap inference.

Bootstrap uses multiplier bootstrap on the GMM influence function, consistent with other library estimators. The R did2s package uses block bootstrap by default; multiplier bootstrap is asymptotically equivalent.

n_bootstrap#

Number of bootstrap iterations.

Type:

int

weight_type#

Type of bootstrap weights: “rademacher”, “mammen”, or “webb”.

Type:

str

alpha#

Significance level used for confidence intervals.

Type:

float

overall_att_se#

Bootstrap standard error for overall ATT.

Type:

float

overall_att_ci#

Bootstrap confidence interval for overall ATT.

Type:

tuple

overall_att_p_value#

Bootstrap p-value for overall ATT.

Type:

float

event_study_ses#

Bootstrap SEs for event study effects.

Type:

dict, optional

event_study_cis#

Bootstrap CIs for event study effects.

Type:

dict, optional

event_study_p_values#

Bootstrap p-values for event study effects.

Type:

dict, optional

group_ses#

Bootstrap SEs for group effects.

Type:

dict, optional

group_cis#

Bootstrap CIs for group effects.

Type:

dict, optional

group_p_values#

Bootstrap p-values for group effects.

Type:

dict, optional

bootstrap_distribution#

Full bootstrap distribution of overall ATT.

Type:

np.ndarray, optional

Methods

__init__(n_bootstrap, weight_type, alpha, ...)

Attributes

__init__(n_bootstrap, weight_type, alpha, overall_att_se, overall_att_ci, overall_att_p_value, event_study_ses=None, event_study_cis=None, event_study_p_values=None, group_ses=None, group_cis=None, group_p_values=None, bootstrap_distribution=None)#
Parameters:
Return type:

None

classmethod __new__(*args, **kwargs)#