Abstract
A wide variety of spatial regression specifications that include alternative types of spatial dependence (e.g., lagged values of the dependent variable, spatial lags of explanatory variables, dependence in the model disturbances) have been the focus of a literature on statistical tests for distinguishing between alternative specifications. LeSage (Spat Stat 9:122–145, 2014) argues that a Bayesian approach to model comparison for cross-sectional and static panel models considerably simplifies the task of selecting an appropriate model. MATLAB software functions for carrying out Bayesian cross-sectional and static spatial panel model comparisons described in LeSage (2014) are described here along with a number of illustrative applications.
Similar content being viewed by others
Notes
All references to the toolbox are to the Spatial Econometrics Toolbox for MATLAB available for free at www.spatial-econometrics.com.
Users can rely on any structure variable name, for example, options. lflag = 0 would work, with the name ‘options’ entered in place of ‘info’.
When using the default MC determinant option, info.lflag = 1, every run of the program will produce slightly different results because a Monte Carlo approximation to the log-determinant calculation is being used (see Barry and Pace 1999).
The SLX model results are identical because no numerical integration is required to calculate the log-marginal likelihood in this case. Varying degrees of accuracy in numerical integration are what explains the difference in results (see LeSage 2014 for details regarding this).
References
Anselin L, Bera AK, Florax R, Yoon MJ (1996) Simple diagnostic tests for spatial dependence. Reg Sci Urban Econ 26(1):77–104
Baltagi BH (2001) Econometric analysis of panel data, 2nd edn. Wiley, Chichester
Barry RP, Pace RK (1999) A Monte Carlo estimator of the log determinant of large sparse matrices. Linear Algebra Appl 289(1–3):41–54
Elhorst JP (2010) Spatial panel data models. In: Fischer MM, Getis A (eds) Handbook of applied spatial analysis. Springer, Berlin, pp 377–407
Elhorst JP (2014) Matlab software for spatial panels. Int Reg Sci Rev 37(3):389–405
Fernandez C, Ley E, Steel MFJ (2001) Benchmark priors for Bayesian model averaging. J Econ 100(2):381–427
Han X, Lee L (2013) Bayesian estimation and model selection for spatial durbin error models with finite distributed lags. Reg Sci Urban Econ 43(5):816–837
Kelejian HH, Piras G (2015) An extension of the J-test to a spatial panel data framework. J Appl Econ. doi:10.1002/jae.2425
LaFaive MD, Nesbit T (2013) Higher cigarette taxes create lucrative, dangerous black market, Mackinac Center For Public Policy. www.mackinac.org/18128
Lee L, Yu J (2010) Some recent developments in spatial panel data models. Reg Sci Urban Econ 40(5):255–271
LeSage JP (2014) Spatial econometric panel data model specification: a Bayesian approach. Spat Stat 9:122–145
LeSage JP, Parent O (2007) Bayesian model averaging for spatial econometric models. Geogr Anal 39(3):241–267
LeSage JP, Pace RK (2009) Introduction to spatial econometrics. CRC Press Taylor & Francis Group, Boca Raton
LeSage JP, Pace RK (2014) Interpreting spatial econometric models. In: Fischer MM, Nijkamp Peter (eds) Handbook of regional science. Springer, New York, pp 1535–1552
Mur J (1999) Testing for spatial autocorrelation: moving average versus autoregressive processes. Environ Plan A 31(8):1371–1382
Parent O, LeSage JP (2012) Spatial dynamic panel data models with random effects. Reg Sci Urban Econ 42(4):727–738
Piras G, Lozano-Gracia N (2012) Spatial J-test: some Monte Carlo evidence. Stat Comput 22(1):169–183
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
LeSage, J.P. Software for Bayesian cross section and panel spatial model comparison. J Geogr Syst 17, 297–310 (2015). https://doi.org/10.1007/s10109-015-0217-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10109-015-0217-3