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
Estimate risk for groupsCiao Here is the example using Stata data. Code: use http://www.stata-press.com/data/r13/drugtr …
Help with loopHi, Getting used to the program. I'm having some trouble with a loop. In the first column of the da…
How do i list ALL underlying codes for a variabel?I have a long list of diagnostic codes, which all have an underlying code that i need to use when wa…
How compare categories from a one variable they are the same among 10 data sets.Hello everybody, I’m working whit 10 data sets from the household survey, and I want to know if in a…
Help with creating a variable with lagged valuesHey guys, I am currently a final year student and i am writing my Economics dissertation on Oil pri…
Subscribe to:
Post Comments (Atom)
0 Response to area specific linear time trend
Post a Comment