Dear All,
I have a panel data set with 86 individuals (ind) and 36 time periods (time). I have estimated a 2-dimensional fixed effects model with dependent variable y and two explanatory variables x1 and x2 using xtreg:
xtreg y x1 x2 i.time, fe
Now I want to estimate the same specification but with 2-dimensional random effects rather than fixed effects. How do I do that? I tried
xtreg y x1 x2 i.time, re
but that gives me a RE/FE model with random effect for 86 individuals and fixed effects for 36 time periods. I have also tried
mixed y x1 x2 || ind: || time:
and then I obtain two random effects, one for 86 individuals and one for 3096 individuals/time periods, instead of for just the 36 time periods.
And if I try
xtmixed y x1 x2 || ind: || time:
I get the same again.
Can anybody suggest me how to obtain what I want?
I have a panel data set with 86 individuals (ind) and 36 time periods (time). I have estimated a 2-dimensional fixed effects model with dependent variable y and two explanatory variables x1 and x2 using xtreg:
xtreg y x1 x2 i.time, fe
Now I want to estimate the same specification but with 2-dimensional random effects rather than fixed effects. How do I do that? I tried
xtreg y x1 x2 i.time, re
but that gives me a RE/FE model with random effect for 86 individuals and fixed effects for 36 time periods. I have also tried
mixed y x1 x2 || ind: || time:
and then I obtain two random effects, one for 86 individuals and one for 3096 individuals/time periods, instead of for just the 36 time periods.
And if I try
xtmixed y x1 x2 || ind: || time:
I get the same again.
Can anybody suggest me how to obtain what I want?
Comment