Hi All,
Question 1:
I'm running a difference-in-differences analysis on yearly repeated cross-sectional data. I'd like to include the area specific linear time trend.
xtset id year
xtreg Y x1 x2 c.year_sequence # i.id, fe r
(note: year is 2005 to 2018, year_sequence is from 1 to 14)
Are these codes correct?
Question 2:
I'm running a difference-in-differences analysis on yearly level data (t). I have multiple areas(i) and multiple jobs (j). How to control for the area specific trend (not linear)?
Is that i.year ## i.area correct?
xtset area year
xtreg Y x1 x2 i.job i.area ## i.year , fe r
Thanks, appreciated!!!!
Happy New Year!
Related Posts with area specific linear time trend
Rearrange a Panel DataHi everyone, I am working on the consolidated banking data from the European Central Bank. I set it…
Interaction Variable in RegressionGood morning to the community, I would like to ask an econometric question on my dataset which is s…
How to generate counterfactual polynomial fitHello, I am looking to generate a counterfactual polynomial fit for some data. Essentially, I have …
Creating dummiesHey everyone! I have panel data between 2014 and 2018 on multiple socioeconomic and demography facto…
Ms-varHi there, I currently use 15.1 version and it seems the interface does not allow for dealing with MS…
Subscribe to:
Post Comments (Atom)
0 Response to area specific linear time trend
Post a Comment