diff_diff.GroupTimeEffect#

class diff_diff.GroupTimeEffect[source]#

Bases: object

Treatment effect for a specific group-time combination.

group#

The treatment cohort (first treatment period).

Type:

any

time#

The time period.

Type:

any

effect#

The ATT(g,t) estimate.

Type:

float

se#

Standard error.

Type:

float

n_treated#

Number of treated observations.

Type:

int

n_control#

Number of control observations.

Type:

int

Methods

__init__(group, time, effect, se, t_stat, ...)

Attributes

is_significant

Check if effect is significant at 0.05 level.

significance_stars

Return significance stars based on p-value.

group

time

effect

se

t_stat

p_value

conf_int

n_treated

n_control

__init__(group, time, effect, se, t_stat, p_value, conf_int, n_treated, n_control)#
Parameters:
Return type:

None

classmethod __new__(*args, **kwargs)#