Thanks! I am teaching this in my next MBA Stats class, so I am going to use your script as
an example (with proper citation of course).
Cheers!
Logan
-----Original Message-----
From: gretl-users-bounces(a)lists.wfu.edu [mailto:gretl-users-bounces@lists.wfu.edu] On
Behalf Of Allin Cottrell
Sent: Thursday, November 14, 2013 9:31 AM
To: Gretl list
Subject: Re: [Gretl-users] LM Test
On Thu, 14 Nov 2013, Mark wrote:
How is the LM test calculated for Gretl for just a standard model.
The Breusch-Pagan LM test for heteroskedasticity is calculated as per the authors'
1979 Econometrica article (vol. 47, no. 5). That is, it is one half of the explained sum
of squares from a regression of the squared residuals from the original OLS model, scaled
by the MLE of the error variance, on the original regressors.
Manual computation of the test statistic would look like this:
<hansl>
ols y const X
series u2 = $uhat^2
scalar sigma2 = $ess/$T
series g = u2/sigma2
ols g const X
scalar RSS = sst(g) - $ess
scalar LM = 0.5 * RSS
</hansl>
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users