Skip to content
Prev 247919 / 398503 Next

Regression Testing

On Thu, 20 Jan 2011, Mojo wrote:

            
Just btw: lm(y ~ x, data = df) is somewhat easier to read and also easier 
to write when the formula involves more regressors.
That is one option. Another one would be using WLS instead of OLS - or 
maybe FGLS. As the model just has one regressor, this might be possible 
and result in a more efficient estimate than OLS.
That's another option, yes.
Yes, the manual page is somewhat technical but the first thing the 
"Details" section does is: It points you to some references that should be 
easier to read. I recommend starting with

      Zeileis A (2004), Econometric Computing with HC and HAC Covariance
      Matrix Estimators. _Journal of Statistical Software_, *11*(10),
      1-17. URL <URL: http://www.jstatsoft.org/v11/i10/>.

That has also some worked examples.
As David pointed out, it's the full covariance matrix estimate.

hth,
Z