diff_diff.DoseResponseCurve#

class diff_diff.DoseResponseCurve[source]#

Bases: object

Dose-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

target#

"att" or "acrt".

Type:

str

Methods

__init__(dose_grid, effects, se, ...[, ...])

to_dataframe()

Convert to DataFrame with dose, effect, se, CI, t_stat, p_value.

Attributes

df_survey

n_bootstrap

p_value

dose_grid

effects

se

conf_int_lower

conf_int_upper

target

__init__(dose_grid, effects, se, conf_int_lower, conf_int_upper, target, p_value=None, n_bootstrap=0, df_survey=None)#
Parameters:
Return type:

None

classmethod __new__(*args, **kwargs)#