diff_diff.ContinuousDiDResults#
- class diff_diff.ContinuousDiDResults[source]#
Bases:
objectResults from Continuous Difference-in-Differences estimation.
Implements Callaway, Goodman-Bacon & Sant’Anna (2024).
- dose_response_att#
ATT(d) dose-response curve.
- Type:
- dose_response_acrt#
ACRT(d) dose-response curve.
- Type:
Methods
__init__(dose_response_att, ...[, alpha, ...])print_summary([alpha])Print summary to stdout.
summary([alpha])Generate formatted summary.
to_dataframe([level])Convert results to DataFrame.
Attributes
alphaattcoef_varSE / abs(overall ATT).
conf_intcontrol_groupdegreeevent_study_effectsis_significantCheck if overall ATT is significant.
num_knotsoverall_conf_intoverall_p_valueoverall_seoverall_t_statp_valuesesignificance_starsSignificance stars for overall ATT.
survey_metadatat_statoverall_att_seoverall_att_t_statoverall_att_p_valueoverall_att_conf_intoverall_acrt_seoverall_acrt_t_statoverall_acrt_p_valueoverall_acrt_conf_intdose_gridgroupstime_periodsn_obsn_treated_unitsn_control_units- __init__(dose_response_att, dose_response_acrt, overall_att, overall_att_se, overall_att_t_stat, overall_att_p_value, overall_att_conf_int, overall_acrt, overall_acrt_se, overall_acrt_t_stat, overall_acrt_p_value, overall_acrt_conf_int, group_time_effects, dose_grid, groups, time_periods, n_obs, n_treated_units, n_control_units, alpha=0.05, control_group='never_treated', degree=3, num_knots=0, base_period='varying', anticipation=0, n_bootstrap=0, bootstrap_weights='rademacher', seed=None, rank_deficient_action='warn', event_study_effects=None, survey_metadata=None)#
- Parameters:
dose_response_att (DoseResponseCurve)
dose_response_acrt (DoseResponseCurve)
overall_att (float)
overall_att_se (float)
overall_att_t_stat (float)
overall_att_p_value (float)
overall_acrt (float)
overall_acrt_se (float)
overall_acrt_t_stat (float)
overall_acrt_p_value (float)
dose_grid (ndarray)
n_obs (int)
n_treated_units (int)
n_control_units (int)
alpha (float)
control_group (str)
degree (int)
num_knots (int)
base_period (str)
anticipation (int)
n_bootstrap (int)
bootstrap_weights (str)
seed (int | None)
rank_deficient_action (str)
survey_metadata (Any | None)
- Return type:
None
- classmethod __new__(*args, **kwargs)#