diff_diff.wooldridge_results.WooldridgeDiDResults#

class diff_diff.wooldridge_results.WooldridgeDiDResults[source]#

Bases: object

Results from WooldridgeDiD.fit().

Core output is group_time_effects: a dict keyed by (cohort_g, time_t) with per-cell ATT estimates and inference. Call .aggregate(type) to compute any of the four jwdid_estat aggregation types.

Methods

__init__(group_time_effects, overall_att, ...)

aggregate(type)

Compute and store one of the four jwdid_estat aggregation types.

plot_event_study(**kwargs)

Event study plot.

summary([aggregation])

Print formatted summary table.

to_dataframe([aggregation])

Export aggregated effects to a DataFrame.

Attributes

alpha

anticipation

att

calendar_effects

conf_int

control_group

event_study_effects

group_effects

method

n_control_units

n_obs

n_treated_units

p_value

se

survey_metadata

t_stat

group_time_effects

key=(g,t), value={att, se, t_stat, p_value, conf_int}

overall_att

overall_se

overall_t_stat

overall_p_value

overall_conf_int

groups

time_periods

__init__(group_time_effects, overall_att, overall_se, overall_t_stat, overall_p_value, overall_conf_int, group_effects=None, calendar_effects=None, event_study_effects=None, method='ols', control_group='not_yet_treated', groups=<factory>, time_periods=<factory>, n_obs=0, n_treated_units=0, n_control_units=0, alpha=0.05, anticipation=0, survey_metadata=None, _gt_weights=<factory>, _gt_vcov=None, _gt_keys=<factory>, _df_survey=None)#
Parameters:
Return type:

None

classmethod __new__(*args, **kwargs)#