Testing Random Effects in Two-Way Spatial Panel Data Models

Similar documents
splm: econometric analysis of spatial panel data

Econometrics. Journal. The Hausman test in a Cliff and Ord panel model. First version received: August 2009; final version accepted: June 2010

Interpreting dynamic space-time panel data models

1 Estimation of Persistent Dynamic Panel Data. Motivation

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data

Prediction in a Generalized Spatial Panel Data Model with Serial Correlation

Some Recent Developments in Spatial Panel Data Models

The exact bias of S 2 in linear panel regressions with spatial autocorrelation SFB 823. Discussion Paper. Christoph Hanck, Walter Krämer

Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Spatial Regression. 14. Spatial Panels (2) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Bootstrapping Heteroskedasticity Consistent Covariance Matrix Estimator

Economics 582 Random Effects Estimation

A SPATIAL CLIFF-ORD-TYPE MODEL WITH HETEROSKEDASTIC INNOVATIONS: SMALL AND LARGE SAMPLE RESULTS

Spatial panels: random components vs. xed e ects

Outline. Overview of Issues. Spatial Regression. Luc Anselin

Lecture 7: Dynamic panel models 2

Simultaneous Equation Models Learning Objectives Introduction Introduction (2) Introduction (3) Solving the Model structural equations

Econometrics of Panel Data

GARCH Models Estimation and Inference

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

Analyzing spatial autoregressive models using Stata

Econometric Analysis of Cross Section and Panel Data

Chapter 6. Panel Data. Joan Llull. Quantitative Statistical Methods II Barcelona GSE

GMM estimation of spatial panels

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Modeling Spatial Externalities: A Panel Data Approach

Testing for Unit Roots with Cointegrated Data

Lecture 6: Hypothesis Testing

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

ESTIMATION PROBLEMS IN MODELS WITH SPATIAL WEIGHTING MATRICES WHICH HAVE BLOCKS OF EQUAL ELEMENTS*

Spatial Regression. 11. Spatial Two Stage Least Squares. Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Journal of Statistical Software

Econometrics of Panel Data

Instrumental Variables/Method of

Spatial Regression. 9. Specification Tests (1) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Regression with time series

A correlated randon effects spatial Durbin model

Spatial Econometrics

Spatial Regression. 15. Spatial Panels (3) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Long Run and Short Effects in Static Panel Models

Estimation and Hypothesis Testing in LAV Regression with Autocorrelated Errors: Is Correction for Autocorrelation Helpful?

Missing dependent variables in panel data models

EC327: Advanced Econometrics, Spring 2007

LM threshold unit root tests

Nonstationary Panels

Spatial Regression. 10. Specification Tests (2) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Lecture 6: Dynamic panel models 1

Short T Panels - Review

Topic 7: Heteroskedasticity

Christopher Dougherty London School of Economics and Political Science

Linear Regression with Time Series Data

Test of hypotheses with panel data

Review of Classical Least Squares. James L. Powell Department of Economics University of California, Berkeley

A Robust Approach to Estimating Production Functions: Replication of the ACF procedure

Dynamic Panel Data Models Featuring Endogenous Interaction and Spatially Correlated Errors

DEPARTMENT OF ECONOMICS AND FINANCE COLLEGE OF BUSINESS AND ECONOMICS UNIVERSITY OF CANTERBURY CHRISTCHURCH, NEW ZEALAND

Limited Dependent Variables and Panel Data

1 Overview. 2 Data Files. 3 Estimation Programs

A Non-Parametric Approach of Heteroskedasticity Robust Estimation of Vector-Autoregressive (VAR) Models

Dynamic Regression Models (Lect 15)

Panel Data Models. Chapter 5. Financial Econometrics. Michael Hauser WS17/18 1 / 63

Advanced Econometrics

Econometrics of Panel Data

Economic modelling and forecasting

econstor Make Your Publications Visible.

Regional Science and Urban Economics

Econ 510 B. Brown Spring 2014 Final Exam Answers

10 Panel Data. Andrius Buteikis,

A Practical Test for Strict Exogeneity in Linear Panel Data Models with Fixed Effects

ECON 4160, Lecture 11 and 12

1 Outline. 1. Motivation. 2. SUR model. 3. Simultaneous equations. 4. Estimation

GMM Estimation of Spatial Error Autocorrelation with and without Heteroskedasticity

Appendix A: The time series behavior of employment growth

the error term could vary over the observations, in ways that are related

Fixed Effects Models for Panel Data. December 1, 2014

Linear Regression with Time Series Data

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares

ECON 4160, Spring term Lecture 12

Topic 10: Panel Data Analysis

GARCH Models Estimation and Inference. Eduardo Rossi University of Pavia

Dynamic Panels. Chapter Introduction Autoregressive Model

Introduction to Eco n o m et rics

Switching Regime Estimation

Heteroskedasticity. We now consider the implications of relaxing the assumption that the conditional

1 Introduction to Generalized Least Squares

Applied Microeconometrics (L5): Panel Data-Basics

Least Squares Estimation of a Panel Data Model with Multifactor Error Structure and Endogenous Covariates

Title. Description. var intro Introduction to vector autoregressive models

The Estimation of Simultaneous Equation Models under Conditional Heteroscedasticity

HETEROSKEDASTICITY, TEMPORAL AND SPATIAL CORRELATION MATTER

Bootstrap Test Statistics for Spatial Econometric Models

Linear dynamic panel data models

Markov-Switching Models with Endogenous Explanatory Variables. Chang-Jin Kim 1

ECON 312 FINAL PROJECT

y it = α i + β 0 ix it + ε it (0.1) The panel data estimators for the linear model are all standard, either the application of OLS or GLS.

On The Comparison of Two Methods of Analyzing Panel Data Using Simulated Data

Applied Econometrics (MSc.) Lecture 3 Instrumental Variables

Analyzing Spatial Panel Data of Cigarette Demand: A Bayesian Hierarchical Modeling Approach

Gravity Models, PPML Estimation and the Bias of the Robust Standard Errors

A forward demeaning transformation for a dynamic count panel data model *

Transcription:

Testing Random Effects in Two-Way Spatial Panel Data Models Nicolas Debarsy May 27, 2010 Abstract This paper proposes an alternative testing procedure to the Hausman test statistic to help the applied researcher to determine the adequacy of the random effects specification in a two-way spatial autoregressive panel data model. Our model includes both individual and time specific effects to deal with unobserved heterogeneity. Moreover, we allow for interactions between cross-sectional units through the presence of an endogenous spatial lag (SAR). We suggest a two-step procedure that first partial out the spatial component of the model and then generalizes the original Mundlak approach to both individual and time effects. Three tests are proposed to find out the best way to model individual and time effects in the specification. This approach has the advantage of simplicity since all tests are based on FGLS estimations and standard Wald statistics can be applied. Some Monte Carlo simulations show the properties of this procedure in small sample. Keywords: Spatial Autocorrelation, Panel Data, Random effects, Mundlak JEL: C12; C21; C23; C52 1 Introduction Spatial autoregressive (SAR) panel data models are of high interest since they allow capturing individual, temporal and interactive heterogeneity. The first two types of heterogeneity come from individual or time characteristics and are easily dealt with using either a fixed or random effects panel data framework. Interactive heterogeneity is due to differentiated feedback effects, originating from cross-section interactions between individuals. 1 It cannot be dealt with traditional panel data methods and furthermore requires explicit modeling of spatial autocorrelation. More precisely, interactive heterogeneity is captured by impact coefficients or elasticities computed from the reduced form of the spatial panel data model taking into account the interaction structure between individuals. Anselin (1988, chap.10) was the first to suggest a one-way random effects specification with spatially autocorrelated errors (Anselin s model hereafter). Several likelihood ratio and Lagrange multiplier (LM) statistics were derived by Baltagi et al. Aspirant F.R.S. FNRS, CERPE, University of Namur, mail: ndebarsy@fundp.ac.be 1 Interactive heterogeneity should not be confused with what literature labels spatial heterogeneity and which refers to standard individual heterogeneity coming from spatial structural instability in coefficients or residual variance. 1

(2003) to assess the relevance of random individual effects and spatial autocorrelation in this model. These statistics were further generalized to the presence of serial correlation by Baltagi et al. (2007). Also, Baltagi, Song & Kwon (2009) suggest LM statistics to test for the presence of heteroskedasticity and spatial autocorrelation in this Anselin s model. Alternatively, Kapoor et al. (2007) (KKP hereafter) develop a method of moments estimator for a one-way random effects model where spatial autocorrelation is present in both components of the error term. These two different approaches lead Baltagi, Egger & Pfaffermayr (2009) to propose a generalized random effects model that encompasses KKP and Anselin s model and to derive LM tests to choose between the two specifications. According to Lee & Yu (2009), this distinction is not important in the fixed effects specification since individual-specific effects enters the model as vectors of unknown fixed effects parameters. Recently, Lee & Yu (2010a,b) have established asymptotic properties of maximum likelihood estimation of a SARAR panel data model (i.e specification containing an endogenous spatial lag and spatially autocorrelated errors) with possibly both time and individual fixed effects. Yet, the critical issue for the applied researcher is to determine the best specification for individual and temporal heterogeneity. To this aim, Hausman (1978) derived a statistic to evaluate the relevance of the random effects specification with respect to the fixed effects model. In the spatial panel data literature, only Mutl & Pfaffermayr (2010) and Lee & Yu (2009) study the use of such a Hausman type statistic but focus on the sole presence of individual heterogeneity. The former paper concentrates on the KKP specification while the interest of the latter lies in the Anselin model. The originality of this paper is to suggest an alternative testing procedure to assess the relevance of a two-way random effects specification. Our procedure generalizes Mundlak s (1978) approach to a SAR panel data model with both individual and time heterogeneity. Extending the Mundlak approach to SAR panel data model is however tricky since the dependence between individual and time effects and the endogenous spatial lag should be accounted for, leading to estimation difficulties. To avoid such complications, we propose a simple two-step strategy. In the first step, we partial out the SAR component by spatially filtering the spatial panel data model. The resulting non-spatial model boils down to a simple two-way panel model on which Mundlak s extension to both individual and time effects can be applied. The Mundlak methodology consists in augmenting the two-way random effects non-spatial specification by variables that should capture the correlation between regressors and unobserved heterogeneity. We go one step further and test for the significance of these additional variables to assess the tradeoff between bias and efficiency. The rest of the paper is organized as follows: Section 2 presents the model under study and the proposed tests. Monte Carlo simulations are conducted in Section 3 to assess the performance of the tests in finite sample and Section 4 concludes. 2 Model and tests statistics Our benchmark model is a two-way error components SAR panel data model: Y t = ρwy t + X t β + U t (1) U t = µ + φ t ι N + V t t = 1,..., T 2

where Y t = (y 1,t, y 2,t,..., y N,t ) is the N-dimensional vector of the dependent variable for all individuals in period t, X t is the N k matrix of exogenous variables, β is the associated vector of unknown regression coefficients to be estimated. V t = (V 1,t, V 2,t,..., V N,t ) is the innovation term, V i,t is i.i.d. across i and t with zero mean and variance σν, 2 and µ is the N 1 vector of systematic effects associated with the N individuals. φ t is the time effect and ι N is the unit vector of dimension N. W is a squared non-stochastic matrices of dimension N typically referred to as interaction or spatial weight matrix and ρ is the unknown spatial autoregressive parameter to be estimated. 2 According to Mundlak (1978), the random effects specification is a misspecified version of the fixed effects model since it ignores the possible correlation between individual effects and regressors. By controlling for this correlation, he shows that coefficients of the random effects specification are identical to those of the within estimation unifying in this way the two approaches. He thus proposes the use of an auxiliary regression that controls for this dependence and to insert those control variables to the original random effects specification. By contrast to the original Mundlak approach, when we study SAR panel data models we cannot directly set the auxiliary regressions that will control for the possible correlation between individual and time heterogeneity and the regressors. The reason is that we cannot assume that individual and time effects are independent from the endogenous spatial lag W y. 3 However, explicitly accounting for this potential correlation in the auxiliary regressions lead to problematic estimations. To avoid such difficulties, we propose a two-step procedure. The first stage consists in partialling out the spatial component and get an a-spatial model. In the second step, we apply the Mundlak approach to both individual and time effects on this spatially filtered specification. Lee & Yu (2010a,c) have shown that the two-way fixed effects spatial panel model provides consistent estimators for ρ and β s since the assumption of independence between effects and regressors is not set. We will thus use this ρ estimator to filter out the spatial component of our model. Let us consider Lee & Yu (2010a) model without accounting for spatially autocorrelated errors: Y t = ρwy t + X t β + µ + φ t ι N + V t t = 1,..., T (2) Depending on whether T is finite or not, Lee & Yu (2010a) propose two different ways to estimate this model. In the first situation, T finite, they get rid of individual effects only and consider time effects as a finite number of additional regression coefficients. The authors do not use the traditional deviation from time mean operator J T = I T 1 T ι T ι T, where I T is the identity matrix of dimension T and ι T a T -dimensional vector of ones, to remove individual effects but its orthonormal eigenvector matrix 1 [F T,T 1, T ι T ]. 4 F T,T 1 is the T T 1 matrix of eigenvectors of J T corresponding to eigenvalues equal to unity while 1 T ι T is the eigenvector associated to the null 2 Variables and weight matrix are assumed to form triangular arrays but for notations clarity, we will omit the n index. 3 By definition, a time effect affects all individual units in a given period, for instance the recent financial crisis. 4 Lee & Yu (2010a) show that even though the within transformation developed in Elhorst (2003) provides consistent ρ and β coefficients, the variance of the disturbances is not consistently estimated when T is small but N large. 3

eigenvalue. Their suggested transformation applies the F T,T 1 matrix to original data set : (Y 1,..., Y T 1) = (F T,T 1 I N )(Y 1,..., Y T ). (3) We note that the transformed sample is shrunk of one period of time. Model (2) thus becomes : Y t = ρwy t + X t β + φ t ι N + V t t = 1,..., T 1, (4) where [φ 1 ι N, φ 2 ι N,..., φ T 1 ι N] = [φ 1 ι N, φ 2 ι N,..., φ T ι N ]F T,T 1 are the transformed time effects. For notational purposes, note that for any variable Z t, Z t = Z t 1 T T t=1 Z t. Even though the assumptions underlying the asymptotic properties of (quasi)-maximum likelihood estimators for model (2) are developed and discussed in Lee & Yu (2010c), we nevertheless state two of them because they change depending on the way to deal with time effects. For this first case where time effects are estimated, these two assumptions, without spatially autocorrelated disturbances, are: Assumption 1. W is a nonstochastic spatial weight matrix with zero diagonal. Assumption 2. The elements of X t are nonstochastic and bounded, uniformly in N and t. Also, in the case where N is large and T is finite or large, the limit of 1 nt T t=1 X Xt exists and is nonsingular. Defining S(ρ) = (I n ρw n ), θ = (β, ρ, σ 2 ), η = [β, ρ] and φ T = [φ 1,..., φ T 1 ] we write the log-likelihood function of (4) as: lnl(θ, φ n(t 1) n(t 1) T ) = ln 2π ln σ 2 + (T 1) ln S(ρ) 2 2 1 T 1 2σ 2 t=1 V t (η, φ t )V t (η, φ t ), (5) with Vt (η, φ t ) = S n (ρ)yt X t β φ t. In their second approach, Lee & Yu (2010a) propose to further transform (4) to eliminate time effects. The traditional way to eliminate time effects is to take deviation from the cross-sectional mean, namely applying the J N = I N 1 N ι Nι N operator. However, the authors prefer a transformation based on the orthonormal 1 eigenvector matrix of J N, namely (F N,N 1, N ι N ), where F N,N 1 is the (N N 1) eigenvectors matrix corresponding to unit eigenvalues, because it does not generate linear dependence in the resulting disturbances. Applying this F N,N 1 to the N- dimensional vector Yt of model (4) produces a (N 1)-dimensional vector Yt such that Yt = F N,N 1 Y t. Let us note that the effective sample size after these 2 transformations is now (N 1)(T 1). Finally, to estimate this transformed model by maximum likelihood, W needs to be row normalized, which leads to the modification of assumption 1 above. Assumption 1 W is a row normalized nonstochastic spatial weight matrix with zero diagonal. Lee & Yu (2010a) show that applying the F N,N 1 operator on model (4) gives: Y t = ρ(f N,N 1WF N,N 1 )Y t + X t β + V t, t = 1,..., T 1. (6) 4

and the associated log-likelihood function is: (N 1)(T 1) lnl(θ) = ln 2πσ 2 (T 1) ln (1 ρ) 2 + (T 1) ln S(ρ) 1 T 1 2σ 2 Vt (η)vt (η) (7) which Lee & Yu (2010a) have shown to be identical to: (N 1)(T 1) lnl(θ) = ln 2πσ 2 (T 1) ln (1 ρ) 2 + (T 1) ln S(ρ) 1 T 1 2σ 2 Ṽ t(η)j N Ṽ t (η) (8) where Ṽt = S(ρ)Ỹt X t β. This last expression provides motivation for the change in the second assumption: Assumption 2 The elements of X t are nonstochastic and bounded, uniformly in N and t. Also, in the case where N is large and T finite or large, the limit of 1 T X nt t=1 J N X exists and is nonsingular. Specifications (4) and (6) provide consistent estimators for ρ and the β s. We thus can use one of these two models (depending whether we prefer to estimate the time effects or not) to spatially filter model (1) and get the following expression: Ŷ t = X t β + U t (9) U t = µ + φ t ι N + V t t = 1,..., T with Ŷt = Y t ˆρW Y t. As the spatial component has been partialled out, this model corresponds to a standard two-way panel data model that can be estimated by OLS. 5 Stacking the observations for all time periods yields: Ŷ = Xβ + U (10) U = Z µ µ + Z φ φ + V where Z µ = (ι T I N ) and Z φ = (I T ι N ) are two matrices of dummy variables. Using this spatially filtered model, we can now test the relevance of random effects specification using an extension of Mundlak (1978) while avoiding to model the correlation with the endogenous spatial lag. Let us introduce two auxiliary regressions that capture the possible dependence between unobserved heterogeneity and regressors: µ i = X i,t π + α i,t (11) φ t = X i,t γ + ω i,t (12) Averaging over time gives: µ i = X i. π + ᾱ i. (13) φ t = X.t γ + ω.t (14) 5 Coefficients estimators using this spatial filtering approach were shown to be identical to a standard SAR estimation (Anselin 1988, pp. 181-182). t=1 t=1 5

where X i. = 1/T T t=1 X i,t is the average over time of X i for individual i; X.t = 1/N N i=1 X i,t is the average over individuals of X i in period t; ω.t N(0, σω) 2 and α i. N(0, σα). 2 The independence assumption between individual effects and regressors is violated when π is significant in equation (11). In such a case, model (10) should include individual fixed effects. However, when π is not significant, individual heterogeneity in specification (10) is best modeled by random effects. The same argument applies for time effects (equation 12): when γ is significant, specification (10) should include fixed time effects whereas if γ is not significant, random time effects better model temporal heterogeneity. We can rewrite Z µ µ and Z φ φ as follows : Z µ µ = ( J T I N ) (Xπ + α) (15) = P µ (Xπ + α) Z φ φ = ( I T J N ) (Xγ + ω) (16) = P φ (Xγ + ω) where J T = ι T ι T T is the operator computing averages of observations over time and J N = ι N ι N N is the operator computing averages of observations over individuals. Expressions (15) and (16) come from use of the projection matrix on the column space of Z µ and Z φ, which are respectively J T I N and I T J N. Plugging these last two equations into (10) yields: Ŷ = Xβ + P µ Xπ + P φ Xγ + U (17) U = P µ α + P φ ω + V By construction, the error term of this last model is a two-way variance components model that has to be estimated by random effects. The procedure we propose to assess the relevance of random effects specification is based on specification (17) and is made of three hypotheses. i) H a 0 : π = γ = 0 ii) H b 0 : π = 0 iii) H c 0 : γ = 0 The applied researcher should first test H0 a, i.e the joint significance of π and γ, in (17). When this hypothesis is not rejected, model (10) can be estimated with a two-way error components framework. However, if the hypothesis is rejected, one can conclude to the presence of correlation between unobserved heterogeneity and regressors but the test does not reveal whether it comes from characteristics peculiar to individuals, time or both. To answer this question, (ii) and (iii) have to be tested to identify the most appropriate specification. Three cases are of interest. First, if both hypotheses are rejected, model (10) should include fixed effects for both components. Second, if only H0 b is rejected, individuals fixed effects should be included in model (10) while temporal heterogeneity is best modeled by an error component type. Last, if only H0 b is rejected, temporal heterogeneity should be modeled by fixed effects while an error component better models individual characteristics. These last two cases are known in the literature as mixed- effects models (see, among others Abowd et al. 1999, Andrews et al. 2006). These 3 tests can be viewed as an arbitrage between bias and efficiency. For instance, if the adopted model is the random effects 6

specification, one prefers a model with a small (negligible) bias but efficient, meaning that we favor a slightly bias estimator bur much more accurately estimated. Let us finally note that since model (17) is estimated by (feasible) GLS, tests for the three hypotheses are standard Wald statistics. Finally, one just has to estimate again the SAR panel data once the best way to model the effects has been determined. 3 Monte Carlo simulations To assess the finite sample properties of the proposed testing procedure, some Monte Carlo experiments are conducted. We set the data generating process as follows: y i,t = ρw i. y t + βx i,t + u i,t u i,t = µ i + φ t + ν i,t, (18) where W i. is the i th row of the spatial weight matrix associated to the endogenous spatial lag while ρ vary over the set [ 0.6, 0.6] by increment of 0.2 and β is set to 1. x i,t = α i + λ t + υ i,t, meaning that the scalar explanatory variable is composed of a time constant, an individual constant and an individual-time varying component, all drawn from independent standard normal distributions. Also, ν i,t IN(0, 1). To test the 3 hypotheses above, we consider 2 panel sizes based on regular grid (N = 36, 49) while T is equal to either 20, 30 or 60. The spatial weight matrix considered is a row normalized rook contiguity of order 1. The reason is that for these simulations, the estimation of ρ is based on the second approach developed by Lee & Yu (2010a), namely the elimination of both individual and time fixed effects. Experiments are replicated 1000 times and performed in Matlab. Four different DGP were considered for the error component processes which are summarized in Table 1. The first considers correlation of both effects with the Table 1: DGP s considered for error component processes DGP 1 DGP2 DGP 3 DGP 4 µ i = x i. π + η i µ i = x i. π + η i µ i = η i µ i = η i φ t = x.t γ + ɛ t φ t = ɛ t φ t = x.t γ + ɛ t φ t = ɛ t In the simulations, η i IN(0, 2) and ɛ t IN(0, 3). Also, π and γ are set to 1. regressor,, the second, random time effects and correlated individual effects, the third is the other way around while DGP 4 assume full random specification. For each of these 4 DGP s, the three hypotheses were systematically tested and Tables 2 to 4 present the rejection rate (power) of the associated tests for all the cases considered. Let us note that under the null, the rejection rate of a test corresponds to its size, which, for H0 b and Hc 0 is set to 5%. Table 2 presents results for T = 20 and for the 2 panel sizes selected. Let us look at the N = 36 case. When both errors components are correlated with the regressor (DGP 1), we observe a good power of the 3 tests, W a a, W a b and W a c even in a small sample size. We also note that the power is not affected by the value of the spatial autoregressive parameter. For DGP 2, where correlation is assumed only between individual effects and the regressor, W a c is rightly sized. Also, power of W a b is close to one, meaning nearly full rejection of the null while the power of the joint test, W a a is slightly lower. Results concerning DGP 3 indicate a right size for W a b. We nevertheless notice 7

lower power for W a a and W a c. This can be due to the small T size, which prevents to build true correlation with the regressor. This fact is even worse when the panel size increases to 49 since the relative time span is even lower. In DGP 4, where true random effects components were generated, sizes of the three statistics match their theoretical counterpart. [Insert Table 2 around here] Table 3 presents the results for T = 30. when N = 36, we observe similar results to Table 2. Very good power for the three tests in DGP 1, a rightly sized W a c test in DGP 2 while power of the tho other tests is also high, even though the rejection rate of W a a is smaller. For DGP 3, the size of W a b matches the theoretical 5%. We also observe a poor power for the joint statistic, even though the rejection rate increases with respect to Table 2, indicating that the size of the time span matters. The power of W a c also raised with respect to Table 2. GDP 4 provides the same conclusions as in previous Table, namely adequate sizes for all the three statistics. [Insert Table 3 around here] Analysis of Table 4 reveals that when the time span increases, (T = 60), tests behave better. For instance, for DGP 3, we notice much larger power for W a a and W a c compared to the 2 preceding Tables. Also, in DGP 1, a much higher power is observed for W a c than before. [Insert Table 4 around here] Let us finally mention that even not shown in the Monte Carlo results, the β coefficient for the augmented spatially filtered random effects specification (17) and for the spatially filtered fixed effects model are numerically equivalent. 4 Conclusion This paper proposes a strategy for the applied researcher to choose between a full fixed, full random or mixed effects spatial autoregressive model. In such, it constitutes an alternative to the well-known Hausman statistic. However, our approach has the advantage of simplicity and does not require the efficiency of the random effects specification. Our procedure consists in first partialling out the spatial component of the model by applying a spatial filter. To do so, we use a consistent ρ estimator, provided by the full fixed effects specification (see Lee & Yu 2010a, for details). Second, we apply a generalization of the Mundlak methodology to this non-spatial model that will orient the researcher on the best way to model individual and time heterogeneity. Monte Carlo experiments show that the tests proposed have good power in finite sample but perform better with larger samples. References Abowd, J. M., Kramarz, F. & Margolis, D. N. (1999), High wage workers and high wage firms, Econometrica 67, 251 333. Andrews, M., Schank, T. & Upward, R. (2006), Practical fixed-effects estimation methods for the three-way error-components model, The Stata Journal 6, 461 481. 8

Anselin, L. (1988), Spatial Econometrics: Method and Models, Kluwer Academic. Baltagi, B. H., Egger, P. & Pfaffermayr, M. (2009), A generalized spatial panel data model with random effects. Working Paper. Baltagi, B. H., Song, S. H., Jung, B. C. & Koh, W. (2007), Testing for serial correlation, spatial autocorrelation and random effects using panel data, Journal of Econometrics 140, 5 51. Baltagi, B. H., Song, S. H. & Koh, W. (2003), Testing panel data regression models with spatial error correlation., Journal of Econometrics 117, 123 150. Baltagi, B. H., Song, S. H. & Kwon, J. H. (2009), Testing for heteroskedasticity and spatial correlation in a random effects panel data model, Computational Statistics and Data Analysis 53, 2897 2922. Elhorst, P. J. (2003), Specification and estimation of spatial panel data models, International Regional Science Review 26, 244 268. Elhorst, P. J. (2009), Spatial panel data models., in G. A. Fischer M.M., ed., Handbook of Applied Spatial Analysis., Springer-verlag, Berlin. Hausman, J. (1978), Specification tests in econometrics, Econometrica 46, 1251 1271. Kapoor, M., Kelejian, H. H. & Prucha, I. R. (2007), Panel data models with spatially correlated error components, Journal of Econometrics 140, 97 130. Lee, L.-F. & Yu, J. (2009), Some recent developments in spatial panel data models, Regional Science and Urban Economics forthcoming. Lee, L.-F. & Yu, J. (2010a), Estimation of spatial autoregressive panel data models with fixed effects, Journal of Econometrics 154, 165 185. Lee, L.-F. & Yu, J. (2010b), A spatial dynamic panel data model with both time and individual fixed effects, Econometric Theory 26, 564 597. Lee, L.-F. & Yu, J. (2010c), Spatial panels: random components vs. fixed effects, Working paper. Mundlak, Y. (1978), On the pooling of time series and cross section data, Econometrica 46, 69 85. Mutl, J. & Pfaffermayr, M. (2010), The hausman test in a cliff and ord panel model, Econometrics Journal 10, 1 30. 9

Table 2: Tests for the relevance of the random effects specification, T=20 N=36, T=20 DGP 1 DGP 2 DGP 3 DGP 4 ρ W a a W a b W a c W a a W a b W a c W a a W a b W a c W a a W a b W a c -0.6 0.998 0.989 0.87 0.978 0.99 0.057 0.659 0.066 0.741 0.054 0.063 0.056-0.4 0.998 0.985 0.876 0.986 0.995 0.066 0.645 0.066 0.741 0.076 0.06 0.068-0.2 0.992 0.982 0.883 0.984 0.991 0.062 0.662 0.057 0.768 0.042 0.061 0.037 0 0.996 0.978 0.881 0.99 0.995 0.07 0.655 0.064 0.743 0.075 0.061 0.061 0.2 0.997 0.984 0.895 0.993 0.998 0.07 0.652 0.061 0.732 0.067 0.057 0.065 0.4 0.997 0.979 0.885 0.987 0.992 0.069 0.669 0.07 0.76 0.072 0.063 0.058 0.6 0.999 0.985 0.882 0.979 0.993 0.061 0.668 0.066 0.752 0.068 0.053 0.073 N=49, T=20 ρ W a a W a b W a c W a a W a b W a c W a a W a b W a c W a a W a b W a c -0.6 0.999 0.999 0.488 0.983 0.993 0.064 0.403 0.049 0.502 0.055 0.04 0.045-0.4 1 1 0.533 0.981 0.992 0.055 0.398 0.047 0.491 0.059 0.06 0.057-0.2 1 0.999 0.52 0.985 0.994 0.062 0.393 0.062 0.474 0.065 0.055 0.065 0 0.999 0.999 0.521 0.99 0.993 0.057 0.387 0.051 0.465 0.061 0.04 0.067 0.2 1 1 0.5 0.983 0.992 0.063 0.394 0.064 0.489 0.066 0.055 0.074 0.4 1 0.999 0.511 0.987 0.993 0.077 0.394 0.049 0.486 0.061 0.045 0.074 0.6 0.999 0.999 0.493 0.984 0.999 0.076 0.371 0.06 0.473 0.075 0.049 0.075 W a a tests π = γ = 0, W a b tests π = 0 and W a c tests γ = 0. 10

Table 3: Tests for the relevance of the random effects specification, T=30 N=36, T=30 DGP 1 DGP 2 DGP 3 DGP 4 ρ W a a W a b W a c W a a W a b W a c W a a W a b W a c W a a W a b W a c -0.6 0.998 0.99 0.891 0.961 0.984 0.052 0.732 0.062 0.825 0.053 0.051 0.057-0.4 1 0.986 0.882 0.962 0.983 0.054 0.725 0.049 0.814 0.061 0.06 0.078-0.2 0.998 0.991 0.893 0.952 0.978 0.049 0.726 0.053 0.81 0.058 0.053 0.068 0 0.995 0.987 0.887 0.964 0.984 0.062 0.740 0.043 0.82 0.067 0.05 0.067 0.2 0.999 0.981 0.867 0.964 0.986 0.052 0.735 0.083 0.808 0.061 0.058 0.061 0.4 0.998 0.99 0.904 0.953 0.982 0.058 0.745 0.056 0.813 0.063 0.056 0.072 0.6 0.999 0.982 0.869 0.952 0.979 0.054 0.726 0.057 0.822 0.056 0.059 0.071 N=49, T=30 ρ W a a W a b W a c W a a W a b W a c W a a W a b W a c W a a W a b W a c -0.6 1 1 0.865 0.958 0.985 0.054 0.707 0.048 0.791 0.055 0.051 0.051-0.4 1 1 0.885 0.962 0.979 0.062 0.713 0.053 0.802 0.047 0.038 0.049-0.2 1 0.999 0.864 0.950 0.974 0.068 0.736 0.047 0.817 0.051 0.048 0.045 0 1 1 0.869 0.959 0.983 0.058 0.693 0.057 0.77 0.075 0.075 0.061 0.2 1 1 0.876 0.957 0.981 0.057 0.709 0.062 0.789 0.047 0.059 0.053 0.4 1 1 0.88 0.951 0.982 0.041 0.669 0.064 0.772 0.064 0.059 0.058 0.6 0.999 0.996 0.864 0.954 0.981 0.051 0.682 0.06 0.783 0.065 0.054 0.072 W a a tests π = γ = 0, W a b tests π = 0 and W a c tests γ = 0. 11

Table 4: Tests for the relevance of the random effects specification, T=60 N=36, T=60 DGP 1 DGP 2 DGP 3 DGP 4 ρ W a a W a b W a c W a a W a b W a c W a a W a b W a c W a a W a b W a c -0.6 0.999 0.914 0.98 0.984 0.992 0.065 0.996 0.057 0.997 0.073 0.05 0.06-0.4 0.998 0.912 0.973 0.974 0.989 0.065 0.983 0.043 0.997 0.046 0.045 0.04-0.2 0.997 0.92 0.979 0.975 0.988 0.058 0.976 0.044 0.993 0.067 0.07 0.043 0 1 0.914 0.977 0.976 0.993 0.071 0.975 0.063 0.986 0.055 0.043 0.04 0.2 0.998 0.922 0.981 0.971 0.989 0.052 0.963 0.053 0.975 0.066 0.072 0.056 0.4 0.999 0.94 0.98 0.96 0.98 0.047 0.976 0.067 0.986 0.072 0.044 0.06 0.6 1 0.925 0.968 0.974 0.992 0.053 0.976 0.08 0.99 0.063 0.063 0.05 N=49, T=60 ρ W a a W a b W a c W a a W a b W a c W a a W a b W a c W a a W a b W a c -0.6 1 0.999 0.998 0.994 0.998 0.038 0.988 0.06 1 0.044 0.052 0.032-0.4 1 0.993 1 0.994 0.998 0.05 0.990 0.056 1 0.042 0.042 0.052-0.2 1 0.993 0.995 0.996 1 0.034 0.990 0.07 0.992 0.068 0.078 0.054 0 1 0.992 0.998 0.992 1 0.038 0.974 0.042 0.994 0.046 0.042 0.052 0.2 1 0.995 1 0.988 0.994 0.068 0.990 0.05 0.998 0.076 0.062 0.076 0.4 1 0.992 1 0.990 0.998 0.066 0.990 0.072 0.998 0.068 0.07 0.06 0.6 1 0.997 0.998 0.986 0.994 0.062 0.988 0.044 0.996 0.048 0.05 0.05 W a a tests π = γ = 0, W a b tests π = 0 and W a c tests γ = 0. 12