Code:
xtset id time
What i want to do is separate regressions for each id en two separate time periods, from 2007m1 to 2011m12 and from 2012m01 to 2016m12.
Im thinking about two loops that intuitively looks something like this:
Code:
foreach id & time<2012m01 xtreg return market
Code:
foreach id & time>2011m12 xtreg return market
Olle
0 Response to Panel data regression for each id
Post a Comment