IDEAS home Printed from https://ideas.repec.org/a/spr/jospat/v3y2022i1d10.1007_s43071-022-00024-9.html
   My bibliography  Save this article

The generalized spatial random effects model in R

Author

Listed:
  • Giovanni Millo

    (DEAMS, University of Trieste)

Abstract

We describe a user-friendly, production quality R implementation of the maximum likelihood estimator of the generalized spatial random effects (GSRE) model of Baltagi, Egger and Pfaffermayr within the well known ’splm’ package for spatial panel econometrics. We extend the maximum likelihood estimator for the GSRE to including a spatial lag of the dependent variable (SAR), and we discuss the theoretical and computational approach. This is the first implementation of the SAR+GSRE, and the second of the original GSRE. Until recently only estimators restricting the spatial structure of individual effects in an arbitrary way have been available and widely employed in applied practice. We present results from the SAR+GSRE and the restricted estimators side by side, drawing on some well-known examples from the spatial econometrics literature. The potential biases from imposing inappropriate restrictions to the spatial error process and/or from omitting the SAR term are illustrated by simulation.

Suggested Citation

  • Giovanni Millo, 2022. "The generalized spatial random effects model in R," Journal of Spatial Econometrics, Springer, vol. 3(1), pages 1-18, December.
  • Handle: RePEc:spr:jospat:v:3:y:2022:i:1:d:10.1007_s43071-022-00024-9
    DOI: 10.1007/s43071-022-00024-9
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s43071-022-00024-9
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s43071-022-00024-9?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Kelejian, Harry H & Prucha, Ingmar R, 1999. "A Generalized Moments Estimator for the Autoregressive Parameter in a Spatial Model," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 40(2), pages 509-533, May.
    2. Sahar Amidi & Ali Fagheh Majidi, 2020. "Geographic proximity, trade and economic growth: a spatial econometrics approach," Post-Print hal-03529593, HAL.
    3. Padovano, Fabio & Petrarca, Ilaria, 2014. "Are the responsibility and yardstick competition hypotheses mutually consistent?," European Journal of Political Economy, Elsevier, vol. 34(C), pages 459-477.
    4. Alicia H. Munnell, 1990. "Why has productivity growth declined? Productivity and public investment," New England Economic Review, Federal Reserve Bank of Boston, issue Jan, pages 3-22.
    5. Bernard Fingleton & Julie Le Gallo, 2008. "Estimating spatial models with endogenous variables, a spatial lag and spatially dependent disturbances: Finite sample properties," Papers in Regional Science, Wiley Blackwell, vol. 87(3), pages 319-339, August.
    6. Baltagi, Badi H. & Levin, Dan, 1992. "Cigarette taxation: Raising revenues and reducing consumption," Structural Change and Economic Dynamics, Elsevier, vol. 3(2), pages 321-335, December.
    7. Kathleen P. Bell & Nancy E. Bockstael, 2000. "Applying the Generalized-Moments Estimation Approach to Spatial Problems Involving Microlevel Data," The Review of Economics and Statistics, MIT Press, vol. 82(1), pages 72-82, February.
    8. Jeffrey M Wooldridge, 2010. "Econometric Analysis of Cross Section and Panel Data," MIT Press Books, The MIT Press, edition 2, volume 1, number 0262232588, December.
    9. Julie Le Gallo & Bernard Fingleton, 2008. "Estimating spatial models with endogenous variables, a spatial lag and spatially dependent disturbances : finite sample properties," Post-Print hal-00485035, HAL.
    10. Blázquez Gomez, Leticia M. & Filippini, Massimo & Heimsch, Fabian, 2013. "Regional impact of changes in disposable income on Spanish electricity demand: A spatial econometric analysis," Energy Economics, Elsevier, vol. 40(S1), pages 58-66.
    11. Lung‐fei Lee & Jihai Yu, 2012. "Spatial Panels: Random Components Versus Fixed Effects," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 53(4), pages 1369-1412, November.
    12. Baltagi, Badi H. & Bresson, Georges & Pirotte, Alain, 2003. "Fixed effects, random effects or Hausman-Taylor?: A pretest estimator," Economics Letters, Elsevier, vol. 79(3), pages 361-369, June.
    13. Baltagi, Badi H. & Bresson, Georges & Pirotte, Alain, 2012. "Forecasting with spatial panel data," Computational Statistics & Data Analysis, Elsevier, vol. 56(11), pages 3381-3397.
    14. Baltagi, Badi H & Griffin, James M, 2001. "The Econometrics of Rational Addiction: The Case of Cigarettes," Journal of Business & Economic Statistics, American Statistical Association, vol. 19(4), pages 449-454, October.
    15. João Romão & João Guerreiro & Paulo M. M. Rodrigues, 2017. "Territory and Sustainable Tourism Development: a Space-Time Analysis on European Regions," REGION, European Regional Science Association, vol. 4, pages 1-17.
    16. Bernard Fingleton & Harry Garretsen & Ron Martin, 2015. "Shocking aspects of monetary union: the vulnerability of regions in Euroland," Journal of Economic Geography, Oxford University Press, vol. 15(5), pages 907-934.
    17. Chakir, Raja & Le Gallo, Julie, 2013. "Predicting land use allocation in France: A spatial panel data analysis," Ecological Economics, Elsevier, vol. 92(C), pages 114-125.
    18. Viliam Druska & William C. Horrace, 2004. "Generalized Moments Estimation for Spatial Panel Data: Indonesian Rice Farming," American Journal of Agricultural Economics, Agricultural and Applied Economics Association, vol. 86(1), pages 185-198.
    19. Millo, Giovanni, 2014. "Maximum likelihood estimation of spatially and serially correlated panels with random effects," Computational Statistics & Data Analysis, Elsevier, vol. 71(C), pages 914-933.
    20. Badi H. Baltagi & Peter Egger & Michael Pfaffermayr, 2013. "A Generalized Spatial Panel Data Model with Random Effects," Econometric Reviews, Taylor & Francis Journals, vol. 32(5-6), pages 650-685, August.
    21. Badi H. Baltagi, 2021. "Econometric Analysis of Panel Data," Springer Texts in Business and Economics, Springer, edition 6, number 978-3-030-53953-5, August.
    22. Millo, Giovanni & Piras, Gianfranco, 2012. "splm: Spatial Panel Data Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 47(i01).
    23. Sahar Amidi & Ali Fagheh Majidi & Bakhtiar Javaheri, 2020. "Growth spillover: a spatial dynamic panel data and spatial cross section data approaches in selected Asian countries," Post-Print hal-03529641, HAL.
    24. Wan, Jun & Baylis, Kathy & Mulder, Peter, 2015. "Trade-facilitated technology spillovers in energy productivity convergence processes across EU countries," Energy Economics, Elsevier, vol. 48(C), pages 253-264.
    25. Sahar Amidi & Ali Fagheh Majidi & Bakhtiar Javaheri, 2020. "Growth spillover: a spatial dynamic panel data and spatial cross section data approaches in selected Asian countries," Future Business Journal, Springer, vol. 6(1), pages 1-14, December.
    26. Wheeler, David & Hammer, Dan & Kraft, Robin & Dasgupta, Susmita & Blankespoor, Brian, 2013. "Economic dynamics and forest clearing: A spatial econometric analysis for Indonesia," Ecological Economics, Elsevier, vol. 85(C), pages 85-96.
    27. Fingleton, Bernard & Palombi, Silvia, 2013. "Spatial panel data estimation, counterfactual predictions, and local economic resilience among British towns in the Victorian era," Regional Science and Urban Economics, Elsevier, vol. 43(4), pages 649-660.
    28. Gianfranco Piras, 2013. "Efficient GMM Estimation of a Cliff and Ord Panel Data Model with Random Effects," Spatial Economic Analysis, Taylor & Francis Journals, vol. 8(3), pages 370-388, September.
    29. Federico Belotti & Gordon Hughes & Andrea Piano Mortari, 2017. "Spatial panel-data models using Stata," Stata Journal, StataCorp LP, vol. 17(1), pages 139-180, March.
    30. J. Elhorst, 2010. "Applied Spatial Econometrics: Raising the Bar," Spatial Economic Analysis, Taylor & Francis Journals, vol. 5(1), pages 9-28.
    31. Kapoor, Mudit & Kelejian, Harry H. & Prucha, Ingmar R., 2007. "Panel data models with spatially correlated error components," Journal of Econometrics, Elsevier, vol. 140(1), pages 97-130, September.
    32. Giovanni Millo & Gaetano Carmeci, 2011. "Non-life insurance consumption in Italy: a sub-regional panel data analysis," Journal of Geographical Systems, Springer, vol. 13(3), pages 273-298, September.
    33. Badi H. Baltagi & Long Liu, 2016. "Random Effects, Fixed Effects and Hausman's Test for the Generalized Mixed Regressive Spatial Autoregressive Panel Data Model," Econometric Reviews, Taylor & Francis Journals, vol. 35(4), pages 638-658, April.
    34. Yves Croissant & Giovanni Millo, 2018. "Panel Data Econometrics with R," Post-Print hal-01699532, HAL.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Timiryanova, Venera & Mchedlishvili, Aleksander & Lakman, Irina & Bakhitova, Railya & Abzalilova, Liya & Devyatkova, Galina, 2023. "Пространственные Факторы Непреднамеренных Падений В Зимний Период [Spatial factors of winter-related unintentional falls]," MPRA Paper 119208, University Library of Munich, Germany.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Roger Bivand & Giovanni Millo & Gianfranco Piras, 2021. "A Review of Software for Spatial Econometrics in R," Mathematics, MDPI, vol. 9(11), pages 1-40, June.
    2. Millo, Giovanni, 2014. "Maximum likelihood estimation of spatially and serially correlated panels with random effects," Computational Statistics & Data Analysis, Elsevier, vol. 71(C), pages 914-933.
    3. Álvarez, Inmaculada C. & Barbero, Javier & Zofío, José L., 2017. "A Panel Data Toolbox for MATLAB," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 76(i06).
    4. Arbués, Pelayo & Baños, José F. & Mayor, Matías, 2015. "The spatial productivity of transportation infrastructure," Transportation Research Part A: Policy and Practice, Elsevier, vol. 75(C), pages 166-177.
    5. repec:rri:wpaper:201303 is not listed on IDEAS
    6. Frank Davenport, 2017. "Estimating standard errors in spatial panel models with time varying spatial correlation," Papers in Regional Science, Wiley Blackwell, vol. 96, pages 155-177, March.
    7. W. Saart, Patrick & Kim, Namhyun & Bateman, Ian, 2021. "Understanding spatial heterogeneity in GB agricultural land-use for improved policy targeting," Cardiff Economics Working Papers E2021/8, Cardiff University, Cardiff Business School, Economics Section.
    8. Harry H. Kelejian & Gianfranco Piras, 2013. "A J-Test for Panel Models with Fixed Effects, Spatial and Time," Working Papers Working Paper 2013-03, Regional Research Institute, West Virginia University.
    9. Pesaran, M. Hashem & Tosetti, Elisa, 2011. "Large panels with common factors and spatial correlation," Journal of Econometrics, Elsevier, vol. 161(2), pages 182-202, April.
    10. J. Paul Elhorst, 2014. "Dynamic Spatial Panels: Models, Methods and Inferences," SpringerBriefs in Regional Science, in: Spatial Econometrics, edition 127, chapter 0, pages 95-119, Springer.
    11. Jean-Sauveur Ay & Raja Chakir & Julie Le Gallo, 2014. "The effects of scale, space and time on the predictive accuracy of land use models," Working Papers 2014/02, INRA, Economie Publique.
    12. Marton, Tibor, 2015. "Spatial Concentration of Milk Production in Norway: The Flow of Quotas," 150th Seminar, October 22-23, 2015, Edinburgh, Scotland 212657, European Association of Agricultural Economists.
    13. Solmaria Halleck Vega & J. Paul Elhorst, 2015. "The Slx Model," Journal of Regional Science, Wiley Blackwell, vol. 55(3), pages 339-363, June.
    14. Harald Badinger & Peter Egger, 2009. "Estimation of Higher-Order Spatial Autoregressive Panel Data Error Component Models," CESifo Working Paper Series 2556, CESifo.
    15. Fonseca Morello, Thiago & Marchetti Ramos, Rossano & O. Anderson, Liana & Owen, Nathan & Rosan, Thais Michele & Steil, Lara, 2020. "Predicting fires for policy making: Improving accuracy of fire brigade allocation in the Brazilian Amazon," Ecological Economics, Elsevier, vol. 169(C).
    16. Harry H. Kelejian & Gianfranco Piras, 2016. "A J test for dynamic panel model with fixed effects, and nonparametric spatial and time dependence," Empirical Economics, Springer, vol. 51(4), pages 1581-1605, December.
    17. David M. Drukker & Peter Egger & Ingmar R. Prucha, 2013. "On Two-Step Estimation of a Spatial Autoregressive Model with Autoregressive Disturbances and Endogenous Regressors," Econometric Reviews, Taylor & Francis Journals, vol. 32(5-6), pages 686-733, August.
    18. W. Saart, Patrick & Kim, Namhyun & Bateman, Ian, 2021. "Modeling and predicting agricultural land use in England based on spatially high-resolution data," Cardiff Economics Working Papers E2021/7, Cardiff University, Cardiff Business School, Economics Section.
    19. Millo, Giovanni, 2017. "A simple randomization test for spatial correlation in the presence of common factors and serial correlation," Regional Science and Urban Economics, Elsevier, vol. 66(C), pages 28-38.
    20. Quentin Frère & Matthieu Leprince & Sonia Paty, 2014. "The Impact of Intermunicipal Cooperation on Local Public Spending," Urban Studies, Urban Studies Journal Limited, vol. 51(8), pages 1741-1760, June.
    21. Fuess, Roland & Lerbs, Oliver, 2017. "Do Local Governments Tax Homeowner Communities Differently?," Working Papers on Finance 1714, University of St. Gallen, School of Finance.

    More about this item

    Keywords

    Generalized spatial panel; Random effects; Maximum likelihood; R;
    All these keywords.

    JEL classification:

    • R1 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General Regional Economics
    • R15 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General Regional Economics - - - Econometric and Input-Output Models; Other Methods
    • C23 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Models with Panel Data; Spatio-temporal Models

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:jospat:v:3:y:2022:i:1:d:10.1007_s43071-022-00024-9. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.