Skip to content

Whites test

3 messages · RToss, Peter Dalgaard, Achim Zeileis

#
On Dec 8, 2011, at 14:32 , RToss wrote:

            
Seems that there is a white.test in the bstats package. (And also a bp.test which might be a better idea if there is a sizable number of predictors.)
#
On Thu, 8 Dec 2011, RToss wrote:

            
You can use bptest() from the "lmtest" package and then supplying 
interactions and quadratic terms of all regressors for the auxiliary 
regression.

See example("CigarettesB", package = "AER") for a worked example.
Z