Hello all,
I am following a procedure discussed in a paper to analyze my longitudinal data. I have to apply a generalized least squares (GLS) random-effects model with robust errors.
I checked the -xtgls- command, but it has no option for neither random effects nor robust errors. I checked the forum to see if this issue was discussed before or not, and I encountered a comment by Carlo Lazzaro saying that:
I was wondering that Generalized least squares model is the same as -xtreg [varlist], re vce(robust)-?
If no, how I can achieve random-effect model with robust errors using -xtgls-?
I am following a procedure discussed in a paper to analyze my longitudinal data. I have to apply a generalized least squares (GLS) random-effects model with robust errors.
I checked the -xtgls- command, but it has no option for neither random effects nor robust errors. I checked the forum to see if this issue was discussed before or not, and I encountered a comment by Carlo Lazzaro saying that:
GLS is a particular case of OLS when the residual distribution shows heteroskedastcity.In Stata, it simply implies to replace default with -robust- standard errors
If no, how I can achieve random-effect model with robust errors using -xtgls-?

Comment