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

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

None

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

group: Any
time: Any
effect: float
se: float
t_stat: float
p_value: float
conf_int: Tuple[float, float]
n_treated: int
n_control: int
property is_significant: bool

Check if effect is significant at 0.05 level.

property significance_stars: str

Return significance stars based on p-value.

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

None