Hi everybody,
For my research, I need to do multiple FE with panel data.
the dependent variable is group-level, Independent variables is country level.
So I tried
reg y x i.group i.country i.year
it response with not sorted, can't proceed.
Only in this circumstances is possible to proceed:
egen ID = group(country group)
xtset ID year
reg i.group i.year i.country
I am not sure did I formulated the right code.
Thanks
For my research, I need to do multiple FE with panel data.
the dependent variable is group-level, Independent variables is country level.
So I tried
reg y x i.group i.country i.year
it response with not sorted, can't proceed.
Only in this circumstances is possible to proceed:
egen ID = group(country group)
xtset ID year
reg i.group i.year i.country
I am not sure did I formulated the right code.
Thanks
Comment