WhiteTest: White's Model Specification Test

View source: R/WhiteTest.R

WhiteTestR Documentation

White's Model Specification Test

Description

This is shown in SAS PROC REG as the Test of First and Second Moment Specification.

Usage

  WhiteTest(rx)

Arguments

rx

a result of lm

Details

This is also called White's general test for heteroskedasticity.

Value

Returns a direct test result by the more complex Theorem 2, not by the simpler Corollary 1.

Author(s)

Kyun-Seop Bae k@acr.kr

References

White H. A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity. Econometrica 1980;48(4):817-838.

Examples

  WhiteTest(lm(mpg ~ disp, mtcars))

sasLM documentation built on June 15, 2026, 9:07 a.m.