Professional Documents
Culture Documents
Both tests have to be performed after estimating the the standard regression
model (see section 4.2). If the test statistic LM(lag) turns out to be significant,
but LM(error) is insignificant, spatial autocorrelation appears to be substantial,
which means that the spatial lag model is viewed to be appropriate. In the
converse case the spatial error model will be a sensible choice for analysing
the relationship between Y and the X-variables. When both test statistics,
LM(lag) and LM(error) prove to be significant, the test statistic with the higher
significance, i.e. the lower p-value, will guide the choice of the spatial regression model. According to this rule, in case of
p[LM(lag)] < p[LM(err)]
the spatial lag model will be chosen, whereas for
p[LM(err)] < p[LM(lag)]
the spatial error model will be the preferable spatial setting.
y = X + X * +
1 x12
1 x
22
X=
M
M
1 x
n2
Lx12
X* = Lx 22
M
Lx
n2
K x1k
K x 2k
O
M
K x nk
L Lx1k
L Lx 2k
O
M
L Lx nk
= [1 2 K k ]'
= [ 2 L k ]'
1
(
)
[
]
[
]
[X X *] ' y
=
X
X
*
'
X
X
*
([ ] )
F=
(SSR c SSR u )
SSR u /( n k 1)
(SSR c SSR u ) / q
SSR u /( n k q )
q: number of X-variables in the subset S (when all X-variables without the vector of one are included in S, q is equal to k 1)
F follows an F distribution with q and n-k-q degrees of freedom.
Testing decision: F > F(q;n-k-q;1-) => Reject H0
or
p < => Reject H0
Example:
In order to illustrate the spatial cross-regressive model, we refer to the example
of 5 regions for which data are available on output growth (X) and productivity
growth (Y):
Region
Output
growth (X)
0.6
1.0
1.6
2.6
2.2
Productivity
growth (Y)
0.4
0.6
0.9
1.1
1.2
y i = 1 + 2 x i + 2 w ij x j + i
j=1
with xi1=1 for all i and xi2 = xi. When LX captures technological externalities from
neighbouring regions 2 is expected to take a positive sign.
When output growth X can be treated as an exogenous variable, the spatial lag
variable LX is as well exogenous, because the spatial weights are determined a
priori. Thus, the spatial regression model (5.5) can be estimated by OLS.
0.6
1.0
1.6
2.6
2.2
0
0 1/ 2 1/ 2 0
1 / 3 0 1 / 3 1 / 3 0
W = 1 / 3 1 / 3 0 1 / 3 0
0 1 / 3 1 / 3 0 1 / 3
0
0
0
1
0
Matrix of spatially
lagged exogenous
variables X* :
0 0.6 1.3
0 1/ 2 1/ 2 0
1 / 3 0 1 / 3 1 / 3 0 1.0 1.6
X* = W x 2 = 1 / 3 1 / 3 0 1 / 3 0 1.6 = 1.4
0
1
/
3
1
/
3
0
1
/
3
2.6 1.6
0
0
0
1
0 2.2 2.6
1
1
X = 1
1
1
1
[X X *] = 1
1
0. 6
1 .0
1 .6
2 .6
2 .2
1. 3
1 .6
1 .4
1.6
2.6
8
8 .5
5
[X X *] ' [X X *] = 8 15.52 14.5
8.5 14.5 15.53
4 .2
[X X *] ' y = 7.78
7.62
1
(
)
[
]
[
]
[X X *] ' y
=
X
X
*
'
X
X
*
2.8930 0.0931 1.4965 4.2 1 = 0.0230
= 0.0931 0.5076 0.4230 7.78 = 2 = 0.3350
1.4965 0.4230 1.2784 7.62 2 = 0.1653
1
1
y = [ X X*] = 1
1
0 .6
1 .0
1 .6
2.6
2.2
1 .3
0.4389
1.6 0.0230 0.6225
Vector of residuals e:
Residual variance
2:
2 =
e' e 1
= [ 0.0389
53 2
0.0225
0.1096
0.0585
0.0176
= 0.0088
2
0.0389
0.0225
0.0103] 0.1096
0.0585
0.0103
]' :
([ ] )
Coefficient of determination
Working table (y = 0.84 )
i
yi
y i
yi y
( y i y) 2
y i y
( y i y) 2
0.4
0.4389
-0.44
0.1936
-0.4011
0.1609
0.6
0.6225
-0.24
0.0576
-0.2175
0.0473
0.9
0.7904
0.06
0.0036
-0.0496
0.0025
1.1
1.1585
0.26
0.0676
0.3185
0.1014
1.2
1.1897
0.36
0.1296
0.3497
0.1223
4.2
4.2
0.4520
0.4344
SST = 0.4520, SSE = 0.4344, SSR = SST SSE = 0.4520 -0.4344 = 0.0176
R2 =
SSE 0.4344
=
= 0.961
SST 0.4520
R2 = 1
or
0.0176
SSR
= 1
= 1 0.039 = 0.961
0.4520
SST
0.0230
=
= 0.144
Test statistic: t 1 =
11 0.0937 2.8930
xx
Critical value (=0.05, two-sided test): t(2,0.975) = 4.303
Testing decision: (| t1 |=0.144) < [t(2;0.975)=4.303] => Accept H0
- for 2 (H0: 2 = 0)
OLS estimator for 2: 2 = 0.3350
Test statistic: t =
2
xx 22
0.3350
= 5.018
0.0937 0.5076
2
x * x *11
0.1653
= 1.560
0.0937 1.2784
F=
or
F=
R2 / k
(1 R 2 ) /(n k 1)
0.961/ 2
= 24.641
(1 0.961) /(5 2 1)
F=