Hello community:
I want to robustly estimate (xtgls) a panel data model, for both FE and RE. The following commands are correct:

For FE:

Code:
xi: xtgls Y X i. id i.year, p (c) c (a)
For RE:

Code:
xtgls Y X, p (c) c (a)

Thank you very much!