Hi,
I want to run staggered DiD, where I have a few treatment years. I figured out I should use the csdid command. However, when I run
I get the error "repeated time values within panel".
My gvar variable is zero for all untreated football teams, and for the treated teams - each football team gets the year of the treatment (2013,2014,2015, etc).
I set up the gvar this way:
Why do I keep getting the error? gvar looks to be specified well.
Thanks.
I want to run staggered DiD, where I have a few treatment years. I figured out I should use the csdid command. However, when I run
Code:
csdid OverallBalanceDeficit MarketValue, ivar(team) time(Year) gvar(first_treat) method(ipw)
My gvar variable is zero for all untreated football teams, and for the treated teams - each football team gets the year of the treatment (2013,2014,2015, etc).
I set up the gvar this way:
Code:
egen first_treat=csgvar(treat), tvar(Year) ivar(team) . replace first_treat=0 if TreatmentGroup==0
Thanks.
Comment