Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: compare different GLS models

From   Estrella Gomez <>
Subject   Re: st: compare different GLS models
Date   Mon, 12 Jul 2010 12:19:17 +0200

Dear Mareike

You can check a simple loss error function for each specification (the
lowest the number, the better). See an example:

reg lxi lGDP_i lGDP_j contig comla smctry ldist i.ichlnum i.jchlnum i.t, robust
predict plxi

* Bias:
gen losspfiw = plxipfiw - lxi

* Absolute error loss:
gen abslosspfiw  = abs(losspfiw)

You can also check the mean square error and the bias (again, the
lowest the better):

* Mean Square Error (MSE)
gen losspfiw2 = losspfiw^2

I hope this helps


2010/6/12 Mareike <>:
> Dear Statalist,
> I'm running a generalized least squares model on panel data. I was wondering
> how I compare the goodness of fit of different specifications of such GLS
> models?
> This might be a very basic question, but I would really appreciate if
> anybody could provide me with an answer.
> Thanks in advance
> Mareike Hahr
> University of Freiburg
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index