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]

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

None

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

period: Any
effect: float
se: float
t_stat: float
p_value: float
conf_int: Tuple[float, float]
__repr__()[source]

Concise string representation.

Return type:

str

property is_significant: bool

Check if the effect is statistically significant at 0.05 level.

property significance_stars: str

Return significance stars based on p-value.

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

None