Hi
Is there any way to control for unit-specific linear time trends when performing a Goodman-Bacon decomposition in Stata?
My DiD model is
I tried to run
but got the error message
Is there any way to create the interaction term for unit-specific linear time trends besides
?
I am using Stata 15.1
All input is appreciated!
Is there any way to control for unit-specific linear time trends when performing a Goodman-Bacon decomposition in Stata?
My DiD model is
Code:
xtreg outcome treatment i.year i.unit##c.year, fe cluster(unit)
Code:
bacondecomp outcome treatment i.unit##c.year, cluster(unit)
factor-variable and time-series operators not allowed
r(101);
r(101);
Code:
i.unit##c.year
I am using Stata 15.1
All input is appreciated!