Hi.

I am working with panel data, and have a continuous treatment variable x. I am interested in the effect a policy change in 2015. X is interacted with time-dummy for 2015.

I have run this regression xtreg y i.year X*2015, fe vce(cluster id).

I also want to look at the years prior to and after the policy change of the continuous treatment group, and I want to set 2014 as the base year.

I have tried doing the following: xtreg y ib2014.year#c.x, fe vce(cluster id). But 2014 is not set as the base year, and year2016#x is omitted from the regression.


Wanted output:

Y
year#c.x
2009
2010
2011
2012
2013
2015
2016

Thanks you in advance.