IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v047i01.html
   My bibliography  Save this article

splm: Spatial Panel Data Models in R

Author

Listed:
  • Millo, Giovanni
  • Piras, Gianfranco

Abstract

splm is an R package for the estimation and testing of various spatial panel data specifications. We consider the implementation of both maximum likelihood and generalized moments estimators in the context of fixed as well as random effects spatial panel data models. This paper is a general description of splm and all functionalities are illustrated using a well-known example taken from Munnell (1990) with productivity data on 48 US states observed over 17 years. We perform comparisons with other available software; and, when this is not possible, Monte Carlo results support our original implementation.

Suggested Citation

  • Millo, Giovanni & Piras, Gianfranco, 2012. "splm: Spatial Panel Data Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 47(i01).
  • Handle: RePEc:jss:jstsof:v:047:i01
    DOI: http://hdl.handle.net/10.18637/jss.v047.i01
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v047i01/v47i01.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v047i01/splm_1.0-00.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v047i01/v47i01.R
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v047i01/cigardemo.txt
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v047i01/spat-sym-us.txt
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v047i01/v47i01-simulations.zip
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v047i01/v47i01-simresults.zip
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v047.i01?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
    ---><---

    References listed on IDEAS

    as
    1. Debarsy, Nicolas & Ertur, Cem, 2010. "Testing for spatial autocorrelation in a fixed effects panel data model," Regional Science and Urban Economics, Elsevier, vol. 40(6), pages 453-470, November.
    2. Yu, Jihai & de Jong, Robert & Lee, Lung-fei, 2008. "Quasi-maximum likelihood estimators for spatial dynamic panel data with fixed effects when both n and T are large," Journal of Econometrics, Elsevier, vol. 146(1), pages 118-134, September.
    3. Jan Mutl & Michael Pfaffermayr, 2011. "The Hausman test in a Cliff and Ord panel model," Econometrics Journal, Royal Economic Society, vol. 14, pages 48-76, February.
    4. 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.
    5. David M. Drukker & Hua Peng & Ingmar Prucha & Rafal Raciborski, 2011. "SPPACK: Stata module for cross-section spatial-autoregressive models," Statistical Software Components S457245, Boston College Department of Economics, revised 04 Dec 2018.
    6. Baltagi, Badi H. & Song, Seuck Heun & Koh, Won, 2003. "Testing panel data regression models with spatial error correlation," Journal of Econometrics, Elsevier, vol. 117(1), pages 123-150, November.
    7. David M. Drukker & Hua Peng & Ingmar Prucha & Rafal Raciborski, 2013. "Creating and managing spatial-weighting matrices with the spmat command," Stata Journal, StataCorp LP, vol. 13(2), pages 242-286, June.
    8. Baltagi, Badi H. & Egger, Peter & Pfaffermayr, Michael, 2007. "Estimating models of complex FDI: Are there third-country effects?," Journal of Econometrics, Elsevier, vol. 140(1), pages 260-281, September.
    9. Badi H. Baltagi, 2021. "Simultaneous Equations with Error Components," Springer Texts in Business and Economics, in: Econometric Analysis of Panel Data, edition 6, chapter 0, pages 157-186, Springer.
    10. 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.
    11. Yu, Jihai & Lee, Lung-fei, 2010. "Estimation Of Unit Root Spatial Dynamic Panel Data Models," Econometric Theory, Cambridge University Press, vol. 26(5), pages 1332-1362, October.
    12. 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.
    13. Piras, Gianfranco, 2010. "sphet: Spatial Models with Heteroskedastic Innovations in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 35(i01).
    14. Croissant, Yves & Millo, Giovanni, 2008. "Panel Data Econometrics in R: The plm Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i02).
    15. repec:hal:journl:peer-00796743 is not listed on IDEAS
    16. Lee, Lung-fei & Yu, Jihai, 2010. "A Spatial Dynamic Panel Data Model With Both Time And Individual Fixed Effects," Econometric Theory, Cambridge University Press, vol. 26(2), pages 564-597, April.
    Full references (including those not matched with items on IDEAS)

    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. 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.
    3. repec:rri:wpaper:201303 is not listed on IDEAS
    4. 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.
    5. Su, Liangjun & Yang, Zhenlin, 2015. "QML estimation of dynamic panel data models with spatial errors," Journal of Econometrics, Elsevier, vol. 185(1), pages 230-258.
    6. 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.
    7. 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.
    8. Lee, Lung-fei & Yu, Jihai, 2010. "Some recent developments in spatial panel data models," Regional Science and Urban Economics, Elsevier, vol. 40(5), pages 255-271, September.
    9. Giuseppe Arbia, 2011. "A Lustrum of SEA: Recent Research Trends Following the Creation of the Spatial Econometrics Association (2007--2011)," Spatial Economic Analysis, Taylor & Francis Journals, vol. 6(4), pages 377-395, July.
    10. Baylis, Kathy & Paulson, Nicholas D. & Piras, Gianfranco, 2011. "Spatial Approaches to Panel Data in Agricultural Economics: A Climate Change Application," Journal of Agricultural and Applied Economics, Cambridge University Press, vol. 43(3), pages 325-338, August.
    11. Á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).
    12. Debarsy, Nicolas & Ertur, Cem, 2010. "Testing for spatial autocorrelation in a fixed effects panel data model," Regional Science and Urban Economics, Elsevier, vol. 40(6), pages 453-470, November.
    13. Taşpınar, Süleyman & Doğan, Osman & Bera, Anil K., 2017. "GMM gradient tests for spatial dynamic panel data models," Regional Science and Urban Economics, Elsevier, vol. 65(C), pages 65-88.
    14. 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.
    15. repec:jss:jstsof:47:i01 is not listed on IDEAS
    16. Harald Badinger & Peter Egger, 2015. "Fixed Effects and Random Effects Estimation of Higher-order Spatial Autoregressive Models with Spatial Autoregressive and Heteroscedastic Disturbances," Spatial Economic Analysis, Taylor & Francis Journals, vol. 10(1), pages 11-35, March.
    17. 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.
    18. Yang, Zhenlin & Yu, Jihai & Liu, Shew Fan, 2016. "Bias correction and refined inferences for fixed effects spatial panel data models," Regional Science and Urban Economics, Elsevier, vol. 61(C), pages 52-72.
    19. Lina Lu, 2017. "Simultaneous Spatial Panel Data Models with Common Shocks," Supervisory Research and Analysis Working Papers RPA 17-3, Federal Reserve Bank of Boston.
    20. Anna Gloria Billé & Marco Rogna, 2022. "The effect of weather conditions on fertilizer applications: A spatial dynamic panel data analysis," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(1), pages 3-36, January.
    21. Qu, Xi & Lee, Lung-fei & Yu, Jihai, 2017. "QML estimation of spatial dynamic panel data models with endogenous time varying spatial weights matrices," Journal of Econometrics, Elsevier, vol. 197(2), pages 173-201.
    22. Yu, Jihai & de Jong, Robert & Lee, Lung-fei, 2012. "Estimation for spatial dynamic panel data with fixed effects: The case of spatial cointegration," Journal of Econometrics, Elsevier, vol. 167(1), pages 16-37.

    More about this item

    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:jss:jstsof:v:047:i01. 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: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    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.