Skip to content
Prev 309264 / 398506 Next

Hausman test in R

Hello.
Well said Joshua. May I add that in an "OLS" context (which i take as
also meaning: no panel structure) what you probably want to do is the
so-called Durbin-Wu-Hausman test for endogeneity, as explained e.g.
here:

http://kurt.schmidheiny.name/teaching/iv2up.pdf

see Section 11 for the idea, and 13 for the R implementation.

Best wishes,
Giovanni

---------- original message --------------------
Date: Sun, 28 Oct 2012 16:03:43 -0700
From: Joshua Wiley <jwiley.psych at gmail.com>
To: fxen3k <f.sehardt at gmail.com>
Cc: r-help at r-project.org
Subject: Re: [R] Hausman test in R
Message-ID:
	
<CANz9Z_+2k3QWazrAZqZ09NSFaj_431A2YLRPgswvNbo6PONMAQ at mail.gmail.com>
Content-Type: text/plain

Hi,

I can think of no reason a Hausman test could not be used for OLS---it
is a
comparison of vectors of coefficients from different models usually
assumed
to produce similar estimates under certain conditions.  Dissimilarity is
taken as indicative of a lack of some or all the conditions required for
the two models to yield similar parameters.
I suggest you look at the plm and systemfit packages.  They have many
functions for OLS, 2SLS, tests of endogeneity, etc.  The plm (and maybe
systemfit?) package also has a vignette which is a good thing to read.
It
has a lot of useful information on the code and examples of comparing
different types of models, that you may find instructive.

Hope this helps,

Josh
On Sun, Oct 28, 2012 at 1:33 PM, fxen3k <f.sehardt at gmail.com> wrote:

            
independent
simple
it