宁静的城np 发表于 2018-4-22 22:42 
https://www.stata.com/statalist/archive/2004-06/msg00828.html
Dear Stata users,
Is there a simple way to do Generalised Least squares in STATA?
The robust option along with the _regress_ is not equivallant to doing a
GLS right? So appart from doing GLS as below is there a simple command
which does the job?
regress depvar x1.... xk
predict e, residual
generate esq = e^ 2
regress esq x1.... xk
predict v
regress depvar x1.... xk [aweight = 1/v]
[This is a feasible GLS estimation or feasible weighted least sqares
estimation]
Thanks in advance,
Rijo John.