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.
Related Posts with Setting base year with interaction of continuous variable - panel data
Changing Scales of MapI am using Stata14 and I have lights data. I am using the package spmap to create maps. I want to cr…
Running a Regression FasterHello, I'm running a conditional logistic regression, with over 400 variables and 750000 rows of da…
Individual class membership of latent class analysis via lclogitHello I have 3 questions concerning a latent class analysis via lclogit: 1) I ran a latent class m…
eventstudy2 updatedDear Members of the Statalist, A new version of eventstudy2 is available on SSC: NEW IN THIS VERSI…
How to identify industry specialists in a huge sampleI would like to define an employee (identified by employee ID) as an industry specialist (equal to 1…
Subscribe to:
Post Comments (Atom)
0 Response to Setting base year with interaction of continuous variable - panel data
Post a Comment