|
The White test is computed by finding nR2 from a regression of ei2 on all of the distinct variables in
, where X is the vector of dependent variables including a constant. This statistic is asymptotically
distributed as chi-square with k-1 degrees of freedom, where k is the number of regressors, excluding the constant term.
The Breusch-Pagan test is a Lagrange multiplier test of the hypothesis that the independent variables have no explanatory
power on the ei2's. If u equals (e12,
e22, . . . , en2), i equals an n ×1 column of ones, and
, then Koenkar and
Bassett's (1982) robust variance estimator
This example uses the MODEL procedure to perform the preceding tests and the WLS correction in an investigation of public school spending in the United States.
The sample consists of 51 observations of per capita expenditure on public schools and per capita income for each state and the District of Columbia in 1979.
The following DATA step reads in the 51 observations, transforms the variable INC by multiplying it by 10-4 (for consistency with Greene 1993), creates the variable INC2 as the square of income, and then deletes Wisconsin from the sample due to a missing value for expenditure.
data hetero1;
input st exp inc;
inc=inc/10000;
inc2=inc**2;
if exp = . then delete;
datalines;
1 275 6247
2 275 6183
3 531 8914
...
;
run;
proc model data=hetero1;
parms a1 b1 b2;
exp = a1 + b1 * inc + b2 * inc2;
fit exp / white pagan=(1 inc inc2)
out=resid1 outresid;
run;
quit;
p-values are 832.91 (0.014), -1834.20 (0.032), and 1587.04 (0.004), respectively, which all
appear to be different from 0 at generally accepted levels of statistical significance. Notice, however, that both the White
test (21.16) and the Breusch-Pagan test (15.83) reject the null hypothesis of no heteroscedasticity. This implies that the
standard errors of the parameter estimates are incorrect and, thus, any inferences derived from them may be misleading. A plot
of the residuals shows more variance in the errors of higher income states.
proc model data=hetero1;
parms a1 b1 b2;
inc2_inv = 1/inc2;
exp = a1 + b1 * inc + b2 * inc2;
fit exp / white pagan=(1 inc inc2);
weight inc2_inv;
run;
quit;
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All of the preceding calculations can be found in Greene (1993, chapter 14).
Breusch, T. and Pagan, A. (1979), ``A Simple Test for Heteroscedasticity and Random Coefficient Variation," Econometrica, 47, 1287-1294.
Greene, W.H. (1993), Econometric Analysis, Second Edition, New York: Macmillan Publishing Company.
Koenkar, R., and Basset, G. (1982), ``Robust Tests for Heteroscedasticity Based on Regression Quantiles," Econometrica, 50, 43-61.
SAS Institute Inc. (1993), SAS/ETS User's Guide, Version 6, Second Edition, Cary, NC: SAS Institute Inc.
White, H. (1980), ``A Heteroscedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroscedasticity," Econometrica, 48, 817-838.