xtreg y x1 x2, be
Use this when you suspect that the entity’s individual characteristics (like a person's innate ability or a country’s culture) are correlated with the predictor variables. It "subtracts" the average of each group, focusing only on internal changes over time. Random Effects (
For multi-way clustering (e.g., id + year):
reshape long y x, i(id) j(year)
Unbalanced panel data with VERY irregular time intervals - Statalist
Нет аккаунта?
Создать аккаунт