Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: GLS in STATA


From   Rijo John <[email protected]>
To   Statalist <[email protected]>
Subject   st: GLS in STATA
Date   Tue, 29 Jun 2004 18:01:12 +0530 (IST)

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.

***************************************************
Rijo.M.John,Research Scholar
Indira Gandhi Institute of Developement Research,
Film City Road, Goregaon East,
Mumbai, India-400065.
contact: (+91)9892412476



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index