diff_diff.DoseResponseCurve#
- class diff_diff.DoseResponseCurve[source]#
Bases:
objectDose-response curve from continuous DiD estimation.
- dose_grid#
Evaluation points, shape
(n_grid,).- Type:
np.ndarray
- effects#
ATT(d) or ACRT(d) values, shape
(n_grid,).- Type:
np.ndarray
- se#
Standard errors, shape
(n_grid,).- Type:
np.ndarray
- conf_int_lower#
Lower CI bounds, shape
(n_grid,).- Type:
np.ndarray
- conf_int_upper#
Upper CI bounds, shape
(n_grid,).- Type:
np.ndarray
Methods
__init__(dose_grid, effects, se, ...[, ...])to_dataframe()Convert to DataFrame with dose, effect, se, CI, t_stat, p_value.
Attributes
df_surveyn_bootstrapp_value- __init__(dose_grid, effects, se, conf_int_lower, conf_int_upper, target, p_value=None, n_bootstrap=0, df_survey=None)#
- classmethod __new__(*args, **kwargs)#