[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Rodrigo A. Alfaro" <raalfaroa@gmail.com> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: Re: comparing xtgls and xtreg,re |

Date |
Mon, 9 Jul 2007 09:29:07 -0400 |

Nicola,

-xtreg, re- allows to have an unobserved component in the error term which is random, then the loglikelihood has a composed error term that requires assumptions on the distribution of u(i) and e(i,t)... convention says that both are normal. Similar approach is applied in frontier models, but there the distribution of u(i) is half-normal or gamma.

-xtgls- is GLS for panel data, asumming some structure for the distribution of e(i,t). For example, in terms of variances, correlations (cross-sectional) or autocorrelations (time series). The default is no correlation accross panels, homoscedastic errors and no autocorrelation, ie iid errors across panels and time... the latter is the same assumption of the standard LS (-reg-). You can get the same standard errors than -reg- adding the option -nmk- to xtlgs as follows:

xtgls n w k ys yr198*, nmk

Rodrigo.

----- Original Message ----- From: <nicola.baldini2@unibo.it>

To: <statalist@hsphsun2.harvard.edu>

Sent: Monday, July 09, 2007 7:44 AM

Subject: st: comparing xtgls and xtreg,re

Given that -xtreg, re- is referred to on the help file as "GLS random-effects (RE) model", I am puzzled that -xtgls- with default options (and -xtpcse-) produces the same coefficients as -regress- and different from both -xtreg, re- and -xtreg, mle-. Why? Most importantly, which should I trust???

Moreover, -xtgls- and -regress- produce almost identical standard errors. I don't think it depends on my data, e.g. take some panels on the web and confront:

webuse abdata

xtreg n w k ys yr198*

regress n w k ys yr198*

xtgls n w k ys yr198*

Please note that I use Stata 9.2

Nicola

*

* 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/

* * 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/

**References**:**st: comparing xtgls and xtreg,re***From:*nicola.baldini2@unibo.it

- Prev by Date:
**st: Notepad++ and Stata** - Next by Date:
**Re: st: hetereoskedasticity/serial correlation with RE xtprobit xttobit?** - Previous by thread:
**st: comparing xtgls and xtreg,re** - Next by thread:
**st: Calculate Marginal Effect after IVPROBIT** - Index(es):

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