1. 用图表检验Analyze -> regression -> Linear-> Plots; ]) t, w# o2 w. V
Scatter plot of the standardised residuals on the standardised predicted values (ZRESID as the Y variable, and ZPRED as the X variable
& n* `; a. I1 ^4 {/ ^
+ Z9 A( n& l% O如果图表显示有可能存在异方差,需要用统计检验来进一步检测异方差是否确实存在。
- M; e& K0 I' S; M8 l4 H2. 用统计检验8 X" k, V+ s9 F( F
Heteroscedasticity——Testing and Correcting in SPSS.pdf
Gwilym Pryce March 2002.doc
(172.5 KB, 下载次数: 4)
6 f% D6 {) t( [5 |
7 Q4 X. G& V& F% U
" b g9 |$ U+ D# SLevene’s Test
+ w) w/ V7 |' F* z" m- pGoldfeld-Quandt Test
' {! [! C( J( J5 bBreusch-Pagan Test+ h& I; `- u0 \& J
White‘s Test (比较常用来检验异方差)( g8 s8 G/ j5 v' o
Assume you want to run a regression of wage on age, work experience,education, gender, and a dummy for sectorofemployment (whether employed in the public sector). wage = function(age, workexperience, education, gender, sector) or, as your textbook will have it, wage = b1 + b2*age + b3*work experience+ b4*education + b5*gender + b6*sector The White’s test is usually used as a test for heteroskedasticity. In this test, a regression of the squares ofthe residuals is run on the variables suspected of causing theheteroskedasticity, their squares, and cross products. (residuals)2 = b0 + b1 educ + b2 work_ex+ b3 (educ)2 + b4 (work_ex)2 + b5(educ*work_ex) & ~/ y' ^' u' v" E" I
; t6 y F: h o3 \$ z9 N( T) m. r/ k! w
: c, l: F+ |5 J( z i( L
White’s Test · Calculate n*R2 à R2 = 0.037, n=2016 à Thus, n*R2 = .037*2016 = 74.6.
4 L2 S$ E9 D2 a+ Z· Compare this value with c2 (n), i.e.with c2 (2016)
, E0 A/ A& r: {, e/ ^(c2 is the symbol for theChi-Square distribution) " q- ?4 d& R& a/ `) A% O3 u
c2 (2016) = 124obtained from c2 table. (For 955 confidence) As n*R2 < c2 ,heteroskedasticity can not be confirmed.
3 o' ]8 R& e+ O4 R7 L0 ^
9 ]% q+ R& G; k s. G+ N( N/ v请参考:regression_explained_SPSS
regression_explained_SPSS.doc
(368 KB, 下载次数: 0)
' O' m2 g/ p3 X0 V0 U8 l( P$ i |