diff_diff.PeriodEffect#

class diff_diff.PeriodEffect[source]#

Bases: object

Treatment effect for a single time period.

period#

The time period identifier.

Type:

any

effect#

The treatment effect estimate for this period.

Type:

float

se#

Standard error of the effect estimate.

Type:

float

t_stat#

T-statistic for the effect estimate.

Type:

float

p_value#

P-value for the null hypothesis that effect = 0.

Type:

float

conf_int#

Confidence interval for the effect.

Type:

tuple[float, float]

Methods

__init__(period, effect, se, t_stat, ...)

Attributes

is_significant

Check if the effect is statistically significant at 0.05 level.

significance_stars

Return significance stars based on p-value.

period

effect

se

t_stat

p_value

conf_int

__init__(period, effect, se, t_stat, p_value, conf_int)#
Parameters:
Return type:

None

classmethod __new__(*args, **kwargs)#