diff_diff.lpdid_results.LPDiDResults#
- class diff_diff.lpdid_results.LPDiDResults[source]#
Bases:
objectResults container for the
LPDiDestimator.Holds the per-horizon
event_studytable and thepooledpre/post table (each apandas.DataFramewithcoefficient,se,t_stat,p_value,conf_low,conf_high,n_obs,n_clusterscolumns). The headline ATT is the pooledpostrow.n_control_unitscounts never-treated units only (the library-wide field convention, surfaced as “Never-treated units” insummary()); undercontrol_group="clean"the realized control pool at each horizon also includes not-yet-treated cohorts, whose per-horizon counts live in then_obs/n_clusterscolumns of the tables.Methods
__init__(event_study, pooled, n_obs, ...[, ...])print_summary()summary()to_dataframe([level])to_dict()Attributes
absorbalphaattcluster_nameconf_intcovariatesdylagsestimandn_clustersp_valuerank_deficient_actionset_statvcov_typeylagsevent_studypooledn_obsn_treated_unitsn_control_unitspre_windowpost_windowcontrol_groupreweightno_compositionpmd- __init__(event_study, pooled, n_obs, n_treated_units, n_control_units, pre_window, post_window, control_group, reweight, no_composition, pmd, alpha=0.05, cluster_name=None, n_clusters=None, vcov_type='hc1', rank_deficient_action='warn', covariates=None, absorb=None, ylags=0, dylags=0)#
- Parameters:
event_study (DataFrame | None)
pooled (DataFrame | None)
n_obs (int)
n_treated_units (int)
n_control_units (int)
pre_window (int)
post_window (int)
control_group (str)
reweight (bool)
no_composition (bool)
alpha (float)
cluster_name (str | None)
n_clusters (int | None)
vcov_type (str)
rank_deficient_action (str)
ylags (int)
dylags (int)
- Return type:
None
- classmethod __new__(*args, **kwargs)#