Docsity

6. Spatial econometrics - common models, Study notes of Geography

Toggle sidebar
bg1
6. Spatial econometrics - common models
JEAN-MICHEL FLOCH
INSEE
RONA N LESAOUT
ENSAI
6.1 What are the benefits of taking spatial, organisational or social proximity
into account? 151
6.1.1 Theeconomicreasons ................................... 151
6.1.2 Econometricreasons..................................... 152
6.2 Autocorrelation, heterogeneity and weightings: a review of key points
in spatial statistics 152
6.2.1 The nature of spatial effects in regression models . . . . . . . . . . . . . . . 152
6.2.2 Theweightmatrix........................................153
6.2.3 Exploratorymethods .....................................153
6.3 Estimating a spatial econometrics model 154
6.3.1 The galaxy of spatial econometrics models . . . . . . . . . . . . . . . . . . . 154
6.3.2 Statistical criteria for model selection . . . . . . . . . . . . . . . . . . . . . . . . 155
6.3.3 When interpreting results, beware of feedback effects . . . . . . . . . . 157
6.4 Econometric limits and challenges 160
6.4.1 What to do with missing data? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
6.4.2 Choosingtheweightmatrix................................160
6.4.3 What if the phenomenon is spatially heterogeneous? . . . . . . . . . . . 161
6.4.4 The risk of “ecological” errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
6.5 Practical application under R 163
6.5.1 Mappingandtesting..................................... 163
6.5.2 Estimation and model selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
6.5.3 Interpretingtheresults ....................................169
6.5.4 Otherspatialmodelling ................................... 171
Abstract
This chapter describes how to do a spatial econometric study, drawing upon descriptive modelling
of the unemployment rate by employment zone. However, spatial models can also be used more
broadly, their approach being compatible with any problem in which “neighbourhood” relations
come into play. Economic theory characterises many cases of interactions between agents - products,
companies, individuals - that are not necessarily geographical in nature. The chapter focuses on
the study of spatial correlation, and thereby on these different interactions, discussing the links
with spatial heterogeneity, namely spatially differentiated phenomena. There are multiple forms of
interaction related to the variable to be explained, the explanatory variables or the unobserved
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download 6. Spatial econometrics - common models and more Study notes Geography in PDF only on Docsity!

6. Spatial econometrics - common models

JEAN-MICHEL FLOCH

INSEE

RONAN LE SAOUT

ENSAI

6.1 What are the benefits of taking spatial, organisational or social proximity into account? 151 6.1.1 The economic reasons................................... 151 6.1.2 Econometric reasons..................................... 152 6.2 Autocorrelation, heterogeneity and weightings: a review of key points in spatial statistics 152 6.2.1 The nature of spatial effects in regression models............... 152 6.2.2 The weight matrix........................................ 153 6.2.3 Exploratory methods..................................... 153 6.3 Estimating a spatial econometrics model 154 6.3.1 The galaxy of spatial econometrics models................... 154 6.3.2 Statistical criteria for model selection........................ 155 6.3.3 When interpreting results, beware of feedback effects.......... 157 6.4 Econometric limits and challenges 160 6.4.1 What to do with missing data?............................. 160 6.4.2 Choosing the weight matrix................................ 160 6.4.3 What if the phenomenon is spatially heterogeneous?........... 161 6.4.4 The risk of “ecological” errors.............................. 162 6.5 Practical application under R 163 6.5.1 Mapping and testing..................................... 163 6.5.2 Estimation and model selection............................ 164 6.5.3 Interpreting the results.................................... 169 6.5.4 Other spatial modelling................................... 171

Abstract

This chapter describes how to do a spatial econometric study, drawing upon descriptive modelling of the unemployment rate by employment zone. However, spatial models can also be used more broadly, their approach being compatible with any problem in which “neighbourhood” relations come into play. Economic theory characterises many cases of interactions between agents - products, companies, individuals - that are not necessarily geographical in nature. The chapter focuses on the study of spatial correlation, and thereby on these different interactions, discussing the links with spatial heterogeneity, namely spatially differentiated phenomena. There are multiple forms of interaction related to the variable to be explained, the explanatory variables or the unobserved

150 Chapter 6. Spatial econometrics - common models

variables. As a result, these many models end up in competition, all building from the same prior definition of neighbourhood relations. A methodology for selecting the best model (estimate and testing) is thus also detailed step by step. Due to feedback effects, results are to be interpreted in a distinct and more complex manner.

R Prior reading of Chapters 1: “Descriptive spatial analysis” and 2: “Codifying the neighbour- hood structure” and 3: “Spatial autocorrelation indices” is recommended.

Introduction

The relations between values observed on nearby territories have long been a focus for geogra- phers. Waldo Tobler summed up the problematic in a statement often referred to as the first law of geography: “Everything interacts with everything, but two nearby objects are more likely to do so than two distant objects”. The availability of localised data, combined with the spatial statistics procedures now pre-programmed into multiple statistical software tools, raises the question of how this proximity can be modelled into economic studies. The first step, of course, still consists in characterising this proximity, drawing upon descriptive indicators and tests (Floch 2012a). Once the spatial autocorrelation of the data has been detected, it is time to proceed with modelling in a multi-variable setting. The purpose of this working document is to discuss the practical aspects of conducting spatial econometric studies, i.e. selecting the most appropriate model, interpreting the results and understanding the limits of the model. We will illustrate our presentation with localised modelling of the unemployment rate, using a selection of explanatory variables that describe the characteristics of the labour force, the economic structure, the labour supply and the geographic neighbourhood. The aim is not to detail the results of an economic study 1 but to illustrate the techniques implemented. We will briefly review the definition of a neighbourhood matrix that describes proximity relations and spatial correlation tests (described in greater detail in Chapters 2: “Codifying the neighbourhood structure” and 4. “Spatial autocorrelation indices”). We will then explore specification, estimation and interpretation in detail, within the context of spatial econometric models.

The techniques presented apply to areas beyond the strictly geographical scope. There are many types of data that can be described as interconnected, i.e. that can interact with one another, points (individuals or companies the address of which has been identified), data by geographical or administrative zone (localised unemployment rate), physical networks (roads), relational networks (students in a single class) or continuous data (i.e. that exist at any point in space). The latter type of data is found mainly in physics, e.g. ground height, temperature, air quality, etc. and falls within the scope of geostatistics (see chapter 5: "Geostatistics"). It can nonetheless serve as an explanatory variable in the models presented in this document. It is important to note that we are dealing here with pre-existing proximity structures, which experience little if any change. Thus we will not deal with the characterisation of the formation or development of these neighbourhood relations. On the contrary, we will characterise to what extent spatial (or relational) proximity influences an outcome, by controlling multiple characteristics. Does the unemployment rate depend on neighbouring regions or the price of fuel at nearby stations? Can non-response to a survey spread spatially? While the majority of applications have a geographical dimension (see Abreu et al. 2004 regarding convergence between regional GDP levels, Osland 2010 regarding determinants of real estate prices described using conventional examples), the fields of application are broader, including for example measuring peer effects in social networks (cf. Fafchamps 2015 for a summary view), ideological

  1. Blanc et al. 2008 do so in detail, using a spatial econometric model for France, as Lottmann 2013 does, for Germany.

152 Chapter 6. Spatial econometrics - common models

In addition, externalities or neighbourhood effects are commonly taken into account (or con- trolled) using spatial variables such as distance (e.g. to the nearest competitor) or indicators aggregated by geographical zone (e.g. number of competitors). This type of variable can be interpreted as having spatial lag (i.e. function of observations in neighbouring zones), with an a priori definition of neighbourhood relations. Spatial econometrics therefore justifies and fosters the widespread use of these empirical choices.

6.1.2 Econometric reasons

The econometric reasons are rooted in the inadequacies of traditional linear modelling (and the associated estimate using the Ordinary Least Squares -OLS- method) when the assumptions necessary for its implementation are no longer valid. Lesage et al. 2009 thus present multiple technical arguments justifying the use of spatial methods. Spatial autocorrelations of residuals with spatial data, i.e. dependency between nearby observations are quite common. This dependency in the observations may either impair the OLS method (the estimators will be without bias but less precise, and the tests will no longer have the usual statistical properties), or produce biased estimators. If the model omits an explanatory variable spatially correlated to the variable of interest, then omitted variable bias is said to occur. In addition, comparing multiple spatial econometric models leads to discuss about the uncertainty of the data-generating process, which is never known, and verify the robustness of the results. There are many econometric reasons for using spatial models, insofar as descriptive analyses highlight local effects and spatial correlations. In applied studies, it is sometimes difficult to link the econometric and economic aspects justifying consideration for spatial dependence, and economic causalities are difficult to establish from spatial econometrics models (Gibbons et al. 2012).

6.2 Autocorrelation, heterogeneity and weightings: a review of key points in

spatial statistics

6.2.1 The nature of spatial effects in regression models

Waldo Tobler’s famous assertion, quoted in the introduction, sums up the situation in an astute albeit perhaps simplified manner. Anselin et al. 1988, distinguish autocorrelation (spatial dependency) from heterogeneity (spatial non-stationarity). A variety of phenomena, in measurement (choice of territorial breakdown), externalities or spillover may cause observations (endogenous variable, exogenous variable or error term) to become spatially dependent. It is deemed that (positive) autocorrelation occurs when there is similarity between observed values and their location. This chapter deals mainly with the methods for taking this spatial correlation into account in regression models detailed in section 6.3. Spatial heterogeneity, meanwhile, refers to phenomena of structural instability in space. This other form of taking space into account is detailed in Chapter 9: “Geographically weighted regression”. It is based on the idea that explanatory variables can be the same and yet not have the same effect at all points. The model’s parameters are thus variable. The error term may differ by geographical zone. This is referred to as spatial heterogeneity. For example, to define the price index for old real estate in the INSEE-Notaries database, around 300 strata were defined according to the nature of the property (apartment or house) and the geographical area. The price per m^2 of an additional room or another characteristic is assumed to be different depending on the strata involved. The market is segmented. This “pedagogical” sharing between autocorrelation and heterogeneity should not cause us to lose sight of the interactions between the two (Anselin et al. 1988 ; Le Gallo 2002 ; Le Gallo 2004). It is not always easy to distinguish between the two components, and poorly specifying one could cause the other to also be erroneous. The classic tests for heteroskedasticity (i.e. a particular form of heterogeneity on the error term) are affected by spatial autocorrelation, and

6.2 Autocorrelation, heterogeneity and weightings: a review of key points in spatial statistics 153 vice versa. The spatial autocorrelation tests are affected by heteroskedasticity. There is no simple solution for simultaneously integrating both these phenomena, apart from simply adding territorial indicators to the autocorrelation models. Moreover, the correlation between observed values means that the information provided by the data is less rich than it would be with independent data. In the event of autocorrelation, there is only one realisation of the data generating process. All of this pleads in favour of a preliminary exploratory approach to the data. Depending on the question, the methodology will first deal with the spatial autocorrelation of the observations (i.e. the links between nearby units) or the heterogeneity of behaviours (i.e. their variability depending on location).

6.2.2 The weight matrix

To measure the spatial correlation between agents or geographical areas, the first step consists in defining a priori neighbourhood relations between agents or geographical zones. These relationships cannot be estimated by the model. If we observe N regions, there are N (N − 1 ) / 2 different pairs of regions. It is therefore not possible to identify correlation relations between these N regions without making assumptions as to the structure of that spatial correlation. Given N agents or geographical zones, this means defining a square matrix with size N × N, known as the neighbourhood matrix and listed as W , whose diagonal components are null (no element can be its own neighbour). The value of the non-diagonal elements is determined by expert analysis. Numerous neighbourhood matrices have been proposed in the literature. Their construction using software R is detailed in chapter 2: “Codifying Neighbourhood Structure”.

6.2.3 Exploratory methods

Before specifying a spatial econometrics model, it is important to ensure that there is indeed a spatial phenomenon to be taken into account. This begins with characterising spatial autocorrelation using graphical representations (map) and statistical tests, as described in Chapter 3: “Spatial autocorrelation indices”. The main indicator 2 is the Moran indicator, which measures the overall association:

I = (^) ∑i ∑N (^) j wi j · ∑i^ ∑^ j^ wi j (yi−y)(y (^) j −y) ∑i(yi−y)^2 , with^ wi j^ the weight of the coefficient located on the^ i-th line and j-th column of neighbourhood matrix W. The boundaries of the Moran indicator I are between - and 1 and depend on the weight matrix used. The upper limit is in particular equal to 1 where there is straight-line standardisation of the matrix, while the lower boundary remains different from -1. A positive correlation means that areas with high or low values for y group together, and a negative correlation that close geographical zones have very different y values. Under the assumption H 0 that there is no spatial autocorrelation (I = 0 ), the statistic I∗^ = I^ √−E V ((II)) asymptotically follows a normal law N ( 0 , 1 ). Rejecting the null hypothesis of the Moran test therefore amounts to finding spatial autocorrelation. This test of course depends on the choice of neighbourhood matrix W. In addition, rejecting H 0 does not mean that a spatial econometrics model is necessary but that it should be considered. It can only reflect the spatial distribution of an underlying variable. For example, if the underlying model is Y = X · β + ε with β a parameter to be estimated, ε i. ∼i.d .N

0 , σ 2

and X a spatially autocorrelated variable, a Moran test will show the spatial autocorrelation of variable Y. However, the linear model between Y and X is not a spatial model, and can be estimated conventionally using OLSs. Local indicators (by geographic region) i, referred to as LISA for Local Indicators of Spatial Association have been defined to measure the propensity of a zone to group high or low values

  1. The indicators put forth by Geary and Getis and Ord, as well as the other local indicators, are presented in Floch 2012a.

6.3 Estimating a spatial econometrics model 155

The neighbourhood matrix must comply with multiple technical constraints (Lee 2004 ; Elhorst

  1. to ensure, in particular, the inversibility of matrices I − ρW and I − λW , and the identification of models. It can be noted that the usual patterns of contiguousness or inverse distance comply with these constraints. This is not necessarily the case with "atypical" matrices created, for example, for social proximity relations. For example, it is not possible to have only islands (zones that have no neighbours) or, on the contrary, a model in which everyone is everyone else’s neighbour. We must also assume that |ρ| < 1 and |λ | < 1 (criteria that can intuitively be likened to stationarity conditions for ARMA-type models). Three main types of models can be deduced from the model proposed by Manski 1993b, depending on the constraint used, θ = 0, λ = 0 or ρ = 0. The ρ = 0 case (SDEM model, Spatial Durbin Error Model) can be considered if it is assumed that there is no endogenous interaction and that the emphasis is placed on neighbourhood externalities. This model nevertheless remains less frequently used (LeSage 2014). If we assume that the model is such that θ = 0 , we find the Kelejian-Prucha model (also referred to as SAC, Spatial Autoregressive Confused, Kelejian and Prucha 2010 for the heteroskedastic model):

Y = ρ ·WY + X · β + u u = λ ·Wu + ε

The estimators of β in the Kelejian-Prucha model are flawed in that they are biased and not convergent when the real model includes exogenous interactions W X (Lesage et al. 2009). In this instance, there is omitted variable bias. In addition, Le Gallo 2002 emphasises that choosing the same neighbourhood matrix W for this model results in weak parameter identification.

In contrast, if we assume that the model is such that λ = 0 , Y = ρ ·WY + X · β +W X · θ + ε, known as the SDM (Spatial Durbin Model), then the estimators will be unbiased (and the test statistics valid) even if, in reality, we are in the presence of spatially auto-correlated errors (SEMs). This model is therefore more robust in the face of a poor specification choice.

These two models - Kelejian-Prucha and SDM - include specific sub-models, i.e. the autore- gressive spatial model (SAR, AutoRegression spatial): Y = ρ ·WY + X · β + ε) and the model with spatially auto-correlated errors (SEM, Spatial Error Model) : Y = X · β + u and u = λ ·Wu + ε). To derive the latter from the Durbin spatial model, we establish θ = −ρβ (so-called common factor hypothesis). In this case, the SDM model is written: Y = X · β + ρ ·W (Y − X · β ) + ε. By noting u = Y − X · β , it results in the SEM model. The model with exogenous interactions (noted SLX, Spatial Lag X) reflects the case λ = ρ = 0 and θ 6 = 0. Furthermore, there are general versions of these models, which allow a variation in neighbour- hood effects according to the order of the neighbourhood or according to the interactions taken into account. They are spatial versions of time models ARMA(p,q). Not all of these models are presented in an economic study. The statistical criteria and consistency with the economic question to be addressed help determine when one specification should be selected over another.

6.3.2 Statistical criteria for model selection

Two main approaches were used to determine the selection of models. These “practical” approaches are based on the assumption that the neighbourhood matrix is known and that the explanatory variables are exogenous. Under the normality assumption of residuals ε i. ∼i.d .N

0 , σ 2

156 Chapter 6. Spatial econometrics - common models

they are based on an estimate by maximum likelihood of the models and the related statistical tests 4. The first so-called bottom-up approach (figure 6.1) consists in starting with the non-spatial model (see Le Gallo 2002 for a summary). The Lagrange multiplier tests (Anselin et al. 1996 for the SAR and SEM model specification tests, robust to the presence of other types of spatial interactions), then make it possible to choose between the SAR, SEM or non-spatial model. This approach was widely-favoured until the 2000s because the tests developed by Anselin et al. 1996 are based on the residuals of the non-spatial model. They are therefore inexpensive from a computational point of view. Florax et al. 2003 have also shown, using simulations, that this procedure was the most effective when the real model is a SAR or SEM model.

Figure 6.1 – The bottom-up approach Source : Florax et al. 2003

The second so-called top-down approach (figure 6.2) consists in starting from the Durbin spatial model. Based on the tests of the likelihood ratio, the model most suitable for observations is deducted. Improving IT performance has made it easy to estimate these more complex models, including Durbin’s spatial model, used as a reference in the book by Lesage et al. 2009.

Elhorst 2010 proposes a “combined” approach represented in Figure 6.3. It consists in starting with the bottom-up approach but, in the event of spatial interaction (ρ 6 = 0 or λ 6 = 0 ), instead of directly choosing a SAR or SEM model, studying the Durbin spatial model. This approach then confirms, using multiple tests (Lagrange multiplier, likelihood ratio), the relevance of the chosen model. It also allows exogenous interactions to be integrated into the analysis. Lastly, if there is any doubt, the model that appears a priori the most robust (the Durbin spatial model) is chosen. Let consider the case where, from the residuals of the OLS model, the Lagrange multiplier tests ( LMρ and LMλ ) 5 it is concluded that there is an autoregressive term, i.e.ρ 6 = 0 and λ = 0 (left branch of Figure 6.1). The SDM model is then estimated, and, using a likelihood ratio test (θ = 0 ), the choice is made between the SAR model and the SDM model. If the tests conclude that residual

  1. Other estimation methods exist. In the case of endogenous explanatory variables, Fingleton et al. 2008 and Fin- gleton et al. 2012 propose an estimation by instrumental variables and the generalised method of moments. Lesage et al. 2009 propose a Bayesian estimate. Lastly, to relax the parametric framework, Lee 2004 suggests quasi maximum likelihood estimations.
  2. There are two versions of these tests, one robust in the presence of other forms of spatial correlation, the other that is not (Anselin et al. 1996).

158 Chapter 6. Spatial econometrics - common models

Figure 6.3 – Approach proposed by Elhorst 2010 for choosing a spatial econometric model Source: Elhorst 2010

to spatial interactions, the variation of an explanatory variable for a given zone directly affects its result and indirectly affects the results of all other zones. The estimated parameters are then used to calculate a multiplier effect that is global in that it affects the whole of the sample. In contrast, the interpretation of the parameters associated with the explanatory variables remains identical when the model includes only the autocorrelation of errors (SEM model). In this case, there is an overall diffusion effect stemming from spatially auto-correlated errors: the variation of an explanatory variable for a given zone directly affects its results and indirectly affects the results of all other zones, but without the value of this effect being multiplied.

When looking at models with spatially lagged explanatory variables (SLX), the parameters associated with the explanatory variables make it possible to calculate a local effect insofar as the variation of an explanatory variable directly affects its result and indirectly the result of the neighbouring zones, but not that of the neighbouring zones of those neighbours. To formalise the various impacts, we use the framework defined by Lesage et al. 2009.

The SAR model is Y = ρ · WY + Xβ + ε. It can be rewritten in several ways, writing r as the index for an explanatory variable and Sr as the square matrices of the size of the number of observations:

Y = ( 1 − ρW )−^1 Xβ + ( 1 − ρW )−^1 ε

=

k ∑ r= 1

( 1 − ρW )−^1 βrXr + ( 1 − ρW )−^1 ε

k ∑ r= 1

Sr (W ) Xr + ( 1 − ρW )−^1 ε

6.3 Estimating a spatial econometrics model 159

With Y =

Y 1

Y 2

Yn

, X =

X 1

X 2

Xn

and Sr (W ) =

Sr (W ) 11 Sr (W ) 12 · · · Sr (W ) 1 n Sr (W ) 21 Sr (W ) 22 .. .

Sr (W )n 1 Sr (W )n 2 · · · Sr (W )nn

The predicted value is therefore yˆ = ( 1 − ρˆW )−^1 X βˆ 7 and not X βˆ as in a classic linear model. Moreover, E (y) = ( 1 − ρW )−^1 Xβ. The marginal effect (for a quantitative variable) of a change in variable Xr for individual i is not βr but Sr (W )ii, the diagonal rank value i of matrix Sr. Unlike the time series in which there is only one direction to consider (yt depends on yt− 1 , which is explained only by past values), spatial econometrics is multi-directional. A change in my territory affects my neighbours, which in turn affects me. This must be taken into account in the overall analysis of the results. Furthermore, the marginal effect appears different for each zone 8. The diagonal terms of matrix Sr are the direct effects, for each zone, of a change in variable Xr in the same zone. The other terms represent indirect effects, i.e. the impact changing variable Xr in one zone can have on another zone. For all zones (overall level) it is thus possible to calculate the direct and indirect effects found by averaging these effects (Lesage et al. 2009): — The average direct effect is the average of the matrices’ diagonal terms Sr, i.e. (^1) n trace (Sr). This indicator can be interpreted in a way similar to that of the β coefficients of a non-spatial linear model calculated using the OLS method. — The average total effect is an average of all the terms in matrix Sr, (^1) n ∑i [∑k Sr (W )ik]. It can be interpreted in two ways, i.e. as the average of n effects across a zone i due to the modification of a unit of variable Xr in all zones, i.e.∑k Sr (W )ik (the sum of the straight-line terms of matrix Sr), or as the average of the n effects from modifying a unit of variable Xr in a zone i across all zones, i.e.∑k Sr (W )ki (the sum of the terms in the column of matrix Sr). — The average indirect effect is the difference between the average total effect and the average direct effect. The indicators are identical for the Kelejian-Prucha model. Such indicators can be defined for SDM model Y = ρ · WY + Xβ + W X · θ + ε, but their calculations must take into account exogenous interactions W X · θ. In the case matrix Sr (W ) is written ( 1 − ρW )−^1 (Inβr +W θr), instead of ( 1 − ρW )−^1 βr in the case of the SAR model. When an exogenous interaction W X · θ is found but no endogenous interaction is (SLX and SDEM models), the direct effect of a variable Xr is βr, while the indirect effect is θr. In all cases, calculating the accuracy of these estimators is quite complex. In this regard, Lesage et al. 2009 draw upon Bayesian simulations of Markov Chain Monte Carlo methods (MCMC) 9. Moreover, these effects depend first and foremost on the nearby neighbourhood. For the SAR model, it should be noted that the average direct effect is greater in absolute value than the marginal effect of the non-spatial linear model, |Sr|^ > |βr|. The diagonal terms of neighbourhood matrix W are null. Decomposition into whole series ( 1 − ρW )−^1 =

In + ρW + ρ^2 W 2 + · · ·

shows that the first feedback term (which dominates the other higher order terms) is proportional to ρ^2. The analysis of effects by neighbourhood order (distinguishing the direct effect, the effect of neighbours, neighbours of neighbours, etc.) is also elaborated upon byLesage et al. 2009.

  1. This is not the optimal prediction, see Thomas-Agnan et al. 2014 for optimal prediction of a SAR model.
  2. This characteristic is found for the marginal effect of a Probit model, for example. The model is E (Y |X) = P (Y = 1 |X) = Φ (β X) with Φ the distribution function of a standard normal distribution. The marginal effect of a variable Xr is then βr · ϕ (β X) and therefore differs for each individual. One solution thus consist in estimating the average marginal effect βr · ϕ (β X).
  3. Markov Chain Monte Carlo methods are sampling algorithms that make it possible to generate samples of a complex probability law (to deduce the accuracy of a statistic, for instance). They are based on a Bayesian frame and a Markov chain, the boundary law of which is the distribution to be sampled.

6.4 Econometric limits and challenges 161

construction algorithm W from local indicators of spatial autocorrelation on variables of interest. Weights can also be estimated using econometric models with functional constraints that are low a priori (Bhattacharjee et al. 2013). The latter’s approaches often entail calculation processes that are cumbersome and more difficult to implement. Moreover, a more realistic description that is more in line with economic reality may generate endogeneity. Research involving endogenous matrices has recently been proposed (Kelejian et al. 2014). Lastly, the matrix W is considered fixed, which restricts the economic analysis framework. For example, in the case of a neighbourhood matrix measuring the distance between companies or products, Waelbroeck 2005 emphasises that the arrival (or departure) of a company or product is an endogenous event that should lead to changes in neighbourhood relations, which the usual methodology cannot take into account.

6.4.3 What if the phenomenon is spatially heterogeneous?

There are two forms of heterogeneity. The first is heteroskedasticity. The model’s parameters are the same but its individual vari- ability (the variance of the error term) is not. Spatial autocorrelation of errors (I − λW )−^1 ε (SEM model) can be interpreted as a spatial random effect (it is assumed that the individual effects within a neighbourhood are similar, as the fixed effects cannot be estimated) and therefore as a particular form of heteroskedasticity and spatial correlation (Lesage et al. 2009). An alternative solution to a spatial econometrics model would be to define the form of heteroskedasticity and the spatial correlation of the variance-covariance matrix (Dubin 1998) to define spatial clusters (Barrios et al. 2012) or adopt a Newey-West type spatial correction (Flachair 2005). Lastly, recent developments in spatial econometrics relax the hypothesis of homoskedasticity of the residuals ε from the models presented in this introduction. Kelejian et al. 2007Kelejian et al. 2010 proposed for instance a parametric HAC-type method (Heteroskedasticity and Autocorrelation Consistent), derived from time series, and a non-parametric method. In the presence of heteroskedasticity, the estimators remain convergent but the test statistics are no longer distributed according to the usual laws. The spatial autocorrelation tests are therefore no longer reliable. In contrast, in the presence of spatial autocorrelation, the usual heteroskedas- ticity tests (White, Breusch-Pagan) are also no longer valid. Le Gallo 2004 presents joint spatial heteroscedasticity and autocorrelation tests. The second form of heterogeneity relates to the spatial variability of the parameters or functional form of the model. When the territory of interest is well-known to researchers, it is often addressed in empirical literature by adding indicators of geographical zones in the model

  • possibly crossed with each explanatory variable - and thus estimating the model for different zones or by conducting tests of geographical stability of the parameters (known as the Chow test). When the number of these geographical zones increases, this treatment nevertheless reduces the number of degrees of freedom and therefore the accuracy of the estimators. More complex methods commonly used in geography have been developed (Le Gallo 2004). They remain to a large extent descriptive and exploratory (in particular through graphical representations), as their theoretical properties are partially known, and particularly as regards convergence properties and the inclusion of breaking points. There are also geographical smoothing methods where the constant (or even each explanatory variable) is crossed with polynomials that are a function of geographical coordinates. Flachaire (2005) offers a partial (and alternative) linear model Yi = Xiβ + f (ui, vi) + εi, where f refers to a functional form dependent on geographical coordinates ui and vi (or even other explanatory variables if proximity is not spatial but social, or between products, for example). It shows that, like a SAR model, the f can be interpreted as a weighted sum of endogenous variables Y. This analysis thus highlights that spatial correlation and heterogeneity are linked.

162 Chapter 6. Spatial econometrics - common models

There are also local regression methods whose extension to the spatial context is formalised within the framework of geographically weighted regression (Brunsdon et al. 1996). These methods are detailed in Chapter 9: “Geographically-weighted regression”. However, it remains difficult to distinguish spatial heterogeneity and correlation. To our knowl- edge, there is no method for distinctly identifying these two phenomena. Pragmatic approaches are therefore adopted. Le Gallo 2004 offers an application to crime in the United States. Using heteroskedasticity tests (robust to the presence of autocorrelation), it highlights the presence of distinct spatial regimes between two geographical zones, East and West. A SAR model is then estimated, for which the explanatory variables X are crossed with the two spatial regimes, and variances are assumed to be different between these two zones. Osland 2010 studies real estate prices in Norway using spatial econometric models, semi-parametric smoothing and weighted geographical regression models. The various approaches provide additional results but are not integrated into a single modelling.

6.4.4 The risk of “ecological” errors

The methods presented in this document are based on predefined geographical zonings (an em- ployment zone in our example). Many economic variables are only available for the administrative divisions of the territory. However, this administrative division does not necessarily correspond to the economic reality of relations between agents. This geographical phenomenon is known as the MAUP (Modifiable Areal Unit Problem). It implies several consequences (Floch 2012). With different scales or breakdowns, the results of the models and interactions between agents are not identical. The spatial scope of the zones must also be taken into account: 1 000 economic agents do not interact in the same way in 1 km^2 or in 10 000 km^2. Where individual data are available (e.g. employment characteristics from population census rather than unemployment rates by employment zone), it is possible to disregard this administrative breakdown or build the geographical level a priori deemed most relevant. However, in general, there is no solution to the problem of the MAUP. Moreover, the data used are often aggregated, in the sense that they represent the average of our variables of interest on a geographical zone. In conventional econometrics, the use of aggregated data, known as ecological regression, causes identification and heteroskedasticity problems. Anselin (2002) provides an example of a model where the decisions of an individual i, yik, are explained by that individual’s characteristics xik as well as by the characteristics of group k, to which the individual belongs xk = (^) ∑i xik/nk. The model is written yik = α + β · xik + γ · xk + εik where β represents the individual effect and γ the context effect. If the only data available are per group (e.g. average scores of a class on a test, rather than individual results), the estimated model becomes yk = α + (β + γ) · xk + εk. It is then no longer possible to separately identify parameters β and γ. The model is heteroskedastic because V (εk) = σ 2 /nk in the case of initial disturbances independent and identically distributed of variance σ 2. The problem is even more complex in the case of spatial models. It is not possible to aggregate a neighbourhood matrix W defined at the individual level. With individual data, an individual i of group k may have neighbours in group k but also in another group k′. If we now consider an aggregated neighbourhood matrix at group level, intra-group relations will no longer be taken into account (the diagonal is hypothetically null). In addition, there may be many individuals in group k who are neighbours to individuals in group k′^ but very remote neighbours to another group k′′. With a matrix of contiguousness aggregated at the group level, the strength of individual relationships will no longer be taken into account (each neighbour has the same weight). Beyond problems identifying an ecological regression, a SAR model defined at the individual level cannot be aggregated to match a SAR model defined at a higher level. There are no simple relations between the parameters. To understand this issue, let us take the example of the real estate market. The observation deals

164 Chapter 6. Spatial econometrics - common models

the labour force participation rate. Table 6.1 describes the distribution of variables. The average unemployment rate is 10%, with a labour force participation rate of 73%. 22% of the population consist in low-skilled workers and young workers under the age of 30. Apart from the percentage of industrial employment and public employment, the interquartile gaps are low, below 5%. The percentage of industrial employment appears the most polarised variable.

N Mean Std dev. Min Q25 Median Q75 Max Unemployment rate (%) 297 10.0 2.4 4.9 8.3 9.6 11.4 17.

Labour force participation rate (%) 297 72.8 2.6 65.9 71.3 72.8 74.2 81.

Working-age Low-Skilled Graduates (%) 297 22.1 3.6 13.0 19.5 22.2 24.8 32.

Working-age Adults 15-30 y.o. (%) 297 21.8 2.0 16.7 20.4 21.8 23.2 27.

Industrial Employment (%) 297 19.7 8.8 3.7 13.3 18.2 24.8 52.

Public Employment (%) 297 33.5 6.2 15.0 29.5 33.2 36.9 51.

Table 6.1 – Sample Description Note: The geographical zone is the employment zone. Statistics are not weighted.

Spatial autocorrelation tests and advanced graphical representations The near-null p-value of the Moran test indicates that the null hypothesis assuming no spatial autocorrelation should be rejected (see Chapter 3: “Spatial autocorrelation indices”). The result is robust to the choice of neighbourhood matrix. The raw data autocorrelation can be illustrated graphically using the Moran graph. It links the observed value at one point with that observed in the neighbourhood determined by the weight matrix. Figure 6.5 is consistent with the results of the Moran test. A linear relationship appears between the unemployment rate of one zone and that of its neighbourhood. A map can be associated so that employment zones be located according to their characteristics (HH means high unemployment in a high environment, HB a high rate in a lower environment). It shows that this relationship is not homogeneous across the territory. The north and south have high unemployment rates. In contrast, a "middle" France will show lower unemployment rates.

6.5.2 Estimation and model selection

The descriptive analysis showed that space was not neutral in characterising local unemployment rates. However, it is not certain that an econometric model taking space into account is needed. The scatter plot showing unemployment and labour force participation rates shows a strong linear relationship between the two variables. The unemployment and activity rates are both spatially correlated. The unemployment rate could therefore be linked to the activity rate, without any form of spatial correlation other than that present in the two variables. First of all, we begin by estimating a non-spatial linear model using the OLSs. A Moran test adapted to the situation of residuals confirms the residual presence of spatial autocorrelation (potentially associated with spatial heterogeneity), regardless of the neighbourhood matrix. To determine the form of spatial correlation (endogenous, exogenous or unobserved), a prag- matic approach must be taken. The Elhorst 2010 approach would result in adopting the SDM model.

6.5 Practical application under R 165

Figure 6.4 – Distribution of unemployment and labour force participation rate, by employment zone

6.5 Practical application under R 167

Only the OLS and SDM models would then be estimated. For educational purposes, all spatial the models are nevertheless estimated for 6 neighbourhood matrices - contiguous, closer neighbours (2, 5 or 10), inverse distance, and proportional to commutes (known as the endogenous matrix). Regressions are estimated using the spdep package. The computational cost of estimating these models is also low.

Estimated model

model <- txcho_2013 ~ tx_act+part_act_peudip+part_act_1530+part_emp_ind+ part_emp_pub

Neighbourhood Matrix

matrix <- dist.w

OLS model

ze.lm <- lm(model, data=donnees_ze) summary(ze.lm)

Moran test adapted to residuals

lm.morantest(ze.lm,matrix)

LM-Error and LM-Lag test

lm.LMtests(ze.lm,matrix,test="LMerr") lm.LMtests(ze.lm,matrix,test="LMlag") lm.LMtests(ze.lm,matrix,test="RLMerr") lm.LMtests(ze.lm,matrix,test="RLMlag")

SEM model

ze.sem<-errorsarlm(model, data=donnees_ze, matrix) summary(ze.sem)

Hausman test

Hausman.test(ze.sem)

SAR Model

ze.sar<-lagsarlm(model, data=donnees_ze, matrix) summary(ze.sar)

SDM Model

ze.sardm<-lagsarlm(model, data=donnees_ze, matrice, type="mixed") summary(ze.sardm)

Common factor hypothesis test

ze.sardm: Constraint-free model

ze.sem: Constrained model

FC.test<-LR.sarlm(ze.sardm,ze.sem) print(FC.test)

Only the results associated with the reverse distance matrix are presented here, because this matrix is the one with the strongest explanatory character (the lowest AICs) and whose economic interpretation is the most intuitive. As the employment zones have various sizes, contiguousness or nearest neighbours may have unexpected effects. The endogenous matrix may, by construction, trigger a bias in estimators. The results on the choice of model nevertheless remain consistent, regardless of the neighbourhood matrix selected.

168 Chapter 6. Spatial econometrics - common models

Here we expect a negative relationship between the unemployment rate and the labour force participation rate, but a positive one for the percentage of low-skilled workers and young workers. The unemployment halo is less prominent in dynamic zones in terms of employment. Less educated people and young people are deemed to be more affected by unemployment. The zones of high industrial employment are a priori more affected by unemployment (reaction of employment to economic conditions and of factories closing down). On the contrary, as public jobs are more stable, the percentage of public employment should be negatively correlated to the unemployment rate. Let us remember that this model is designed to illustrate spatial econometric techniques, and no economic conclusion can be drawn from it.

(1) (2) (3) (4) (5) (6) (7) (8) MCO SEM SAR SDM SAC SLX SDEM Manski Participation rate -0.622∗∗∗^ -0.498∗∗∗^ -0.437∗∗∗^ -0.472∗∗∗^ -0.499∗∗∗^ -0.470∗∗∗^ -0.486∗∗∗^ -0.473∗∗∗ (0.039) (0.041) (0.038) (0.042) (0.041) (0.050) (0.041) (0.042) % Low educated working-age adults 0.186∗∗∗^ 0.184∗∗∗^ 0.138∗∗∗^ 0.182∗∗∗^ 0.179∗∗∗^ 0.179∗∗∗^ 0.181∗∗∗^ 0.183∗∗∗ (0.026) (0.027) (0.022) (0.027) (0.026) (0.033) (0.027) (0.028) % Working-age adults 15-30 y.o. 0.138∗∗∗^ 0.196∗∗∗^ 0.087∗∗^ 0.209∗∗∗^ 0.180∗∗∗^ 0.205∗∗∗^ 0.197∗∗∗^ 0.211∗∗∗ (0.043) (0.045) (0.037) (0.046) (0.045) (0.055) (0.045) (0.047) % Industrial employment -0.062∗∗∗^ -0.018 -0.036∗∗∗^ -0.015 -0.021∗^ -0.022 -0.024∗∗^ -0. (0.012) (0.012) (0.010) (0.012) (0.012) (0.014) (0.012) (0.012) % Public employment -0.068∗∗∗^ -0.044∗∗∗^ -0.063∗∗∗^ -0.042∗∗^ -0.048∗∗∗^ -0.044∗∗^ -0.049∗∗∗^ -0.041∗∗ (0.019) (0.016) (0.016) (0.016) (0.017) (0.019) (0.017) (0.016) ρˆ 0.519∗∗∗^ 0.629∗∗∗^ 0.205∗^ 0.689∗∗∗ (0.049) (0.064) (0.109) (0.120) λˆ 0.747∗∗∗^ 0.616∗∗∗^ 0.651∗∗∗^ -0. (0.051) (0.096) (0.063) (0.257) θˆ , Participation rate 0.157∗^ -0.300∗∗∗^ -0.277∗∗∗^ 0.205∗ (0.083) (0.082) (0.105) (0.111) θˆ , % Low educated working-age adults -0.135∗∗∗^ -0.027 -0.021 -0.145∗∗∗ (0.045) (0.052) (0.066) (0.046) θˆ , % Working-age adults 15-30 y.o. -0.140 ∗^ -0.041 -0.003 -0.153∗∗ (0.072) (0.085) (0.115) (0.072) θˆ , % Industrial employment -0.044∗∗^ -0.118∗∗∗^ -0.073∗∗^ -0.038∗ (0.020) (0.023) (0.029) (0.023) θˆ , % Public employment -0.024 -0.084∗^ -0.070 -0. (0.037) (0.043) (0.052) (0.037) Intercept 51.653∗∗∗^ 39.729∗∗∗^ 34.470∗∗∗^ 27.456∗∗∗^ 38.427∗∗∗^ 66.077∗∗∗^ 63.650∗∗∗^ 23.530∗∗∗ (3.635) (3.685) (3.407) (6.766) (3.901) (6.514) (10.213) (9.065) Observations 297 297 297 297 297 297 297 297 AIC 1072 967 980 960 967 1029 964 962 R^2 Adjusted 0.624 0. Moran test 0.000 0. LM-Error test 0.000 0. LM-Lag test 0.000 0. Robust LM-Error test 0.000 0. Robust LM-Lag test 0.000 0. Common factor test 0. LM residual auto. test 0.003 0.

Table 6.2 – Determinants of the unemployment rate by employment zone, based on an inverse spatial distance matrix Note: All models are estimated with an inverse spatial distance matrix (with a threshold of 100 km). Standard deviations are shown in brackets. For tests, the p-value is indicated. Significant: ∗ p < 0 .10 , ∗∗^ p < 0 .05 , ∗∗∗^ p < 0..

Regarding the choice of model, the following points can be derived from table 6.2. — Elhorst’s sequential approach (shown in 6.3.2) would result in adopting an SDM model (column 4). It has the lowest AIC (960). All spatial autocorrelation tests implemented from