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
Imputing missing state-years using average of surrounding yearsHello, I have a state-year panel dataset, which is mostly balanced except for one missing year in W…
Taking strings out of file namesI scraped together some xls files using the almighty Python. Before I can/want to work with these fi…
Wooldridge Introductory Econometrics 6th Edition CH13 C16 Qvi and Qvii.Hi, I am currently solving the question from Wooldridge, the question is as follow: Array The link f…
Create a Dummy indicating country pair has appeared previously in different variable Code: * Example generated by -dataex-. For more info, type help dataex clear input float(Year count…
How can I use pweight by hand?Dear statalists: I want to use a mirco sampling data in R,but the package used in R is systemfit whi…
Subscribe to:
Post Comments (Atom)
0 Response to Setting base year with interaction of continuous variable - panel data
Post a Comment