IDEAS home Printed from https://ideas.repec.org/p/kob/dpaper/dp2025-03.html
   My bibliography  Save this paper

Testing for Spatial Autocorrelation in Stata

Author

Listed:
  • Keisuke Kondo

    (Research Institute of Economy, Trade and Industry and Research Institute for Economics and Business Administration, Kobe University, JAPAN)

Abstract

This paper introduces the new Stata command moransi, which allows users to easily compute global and local Moran's I statistics in Stata. The fundamental feature of the moransi command is that the spatial weight matrix is constructed internally within a sequence of the program code. The additional information required in the dataset to implement this command are the latitude and longitude of regions. This paper presents two applied examples of the moransi command to deepen the understanding of global and local spatial autocorrelation.

Suggested Citation

  • Keisuke Kondo, 2025. "Testing for Spatial Autocorrelation in Stata," Discussion Paper Series DP2025-03, Research Institute for Economics & Business Administration, Kobe University.
  • Handle: RePEc:kob:dpaper:dp2025-03
    as

    Download full text from publisher

    File URL: https://www.rieb.kobe-u.ac.jp/academic/ra/dp/English/DP2025-03.pdf
    File Function: First version, 2025
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Anderson, James E, 1979. "A Theoretical Foundation for the Gravity Equation," American Economic Review, American Economic Association, vol. 69(1), pages 106-116, March.
    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. Thomas L. Vollrath & Mark J. Gehlhar & Charles B. Hallahan, 2009. "Bilateral Import Protection, Free Trade Agreements, and Other Factors Influencing Trade Flows in Agriculture and Clothing," Journal of Agricultural Economics, Wiley Blackwell, vol. 60(2), pages 298-317, June.
    2. Nilanjan Banik & John Gilbert, 2010. "Regional Integration and Trade Costs in South Asia," Chapters, in: Douglas H. Brooks & Susan F. Stone (ed.), Trade Facilitation and Regional Cooperation in Asia, chapter 4, Edward Elgar Publishing.
    3. Michele Fratianni & Francesco Marchionne, 2011. "The Limits to Integration," Chapters, in: Miroslav N. Jovanović (ed.), International Handbook on the Economics of Integration, Volume I, chapter 9, Edward Elgar Publishing.
    4. Joras Ferwerda & Mark Kattenberg & Han-Hsin Chang & Brigitte Unger & Loek Groot & Jacob A. Bikker, 2013. "Gravity models of trade-based money laundering," Applied Economics, Taylor & Francis Journals, vol. 45(22), pages 3170-3182, August.
    5. Peter Egger & Douglas Nelson, 2011. "How Bad Is Antidumping? Evidence from Panel Data," The Review of Economics and Statistics, MIT Press, vol. 93(4), pages 1374-1390, November.
    6. Karlsson, Martin & Nilsson, Therese & Pichler, Stefan, 2012. "What Doesn't Kill You Makes You Stronger? The Impact of the 1918 Spanish Flu Epidemic on Economic Performance in Sweden," Working Paper Series 911, Research Institute of Industrial Economics.
    7. Bühler, Mathias, 2024. "Who Benefits from Free Trade?," World Development, Elsevier, vol. 179(C).
    8. Jeffrey H. Bergstrand & Scott L. Baier, 2010. "An Evaluation of Swiss Free Trade Agreements Using Matching Econometrics," Aussenwirtschaft, University of St. Gallen, School of Economics and Political Science, Swiss Institute for International Economics and Applied Economics Research, vol. 65(3), pages 239-250, September.
    9. Pedro E. Moncarz, 2010. "Determinantes del comercio de servicios financieros Potencial de exportaciones para los países sudamericanos," Documentos de trabajo 2010019, Banco Central del Uruguay.
    10. Subrata Ghatak & Andromachi S. Piperakis, 2007. "The impact of Eastern European immigration to UK trade," Economics Discussion Papers 2007-3, School of Economics, Kingston University London.
    11. Elhanan Helpman & Marc Melitz & Yona Rubinstein, 2008. "Estimating Trade Flows: Trading Partners and Trading Volumes," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 123(2), pages 441-487.
    12. James E. Anderson, 2011. "The Gravity Model," Annual Review of Economics, Annual Reviews, vol. 3(1), pages 133-160, September.
    13. David Law & Murat Genç & John Bryant, 2013. "Trade, Diaspora and Migration to New Zealand," The World Economy, Wiley Blackwell, vol. 36(5), pages 582-606, May.
    14. V. I. Blanutsa, 2022. "Geographic Research of the Platform Economy: Existing and Potential Approaches," Regional Research of Russia, Springer, vol. 12(2), pages 133-142, June.
    15. Markus Brueckner & Ngo Van Long & Joaquin L. Vespignani, 2020. "Non-Gravity Trade," Globalization Institute Working Papers 388, Federal Reserve Bank of Dallas.
    16. Inmaculada Martínez-Zarzoso & Martina Vidovic & Anca M. Voicu, 2014. "EU-Accession Effects on Sectoral Trade: A Helpman-Melitz-Rubinstein Approach with Panel Data," CESifo Working Paper Series 4903, CESifo.
    17. Mehdi Raissi & Bahare Teimoori, 2006. "The Impact of Integration on International Trade Flows: the Cases of EU, OIC & ECO," Iranian Economic Review (IER), Faculty of Economics,University of Tehran.Tehran,Iran, vol. 11(2), pages 111-127, spring.
    18. Leticia Blazquez & Carmen Diaz-Mora & Rosario Gandoy, 2011. "EU Integration and Production Networks: Evidende from Spain," ERSA conference papers ersa10p583, European Regional Science Association.
    19. Walid Hejazi, 2005. "Are Regional Concentrations of OECD Exports and Outward FDI Consistent with Gravity?," Atlantic Economic Journal, Springer;International Atlantic Economic Society, vol. 33(4), pages 423-436, December.
    20. Thibault Fally & James Sayre, 2018. "Commodity Trade Matters," 2018 Meeting Papers 172, Society for Economic Dynamics.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:kob:dpaper:dp2025-03. 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: Office of Promoting Research Collaboration, Research Institute for Economics & Business Administration, Kobe University (email available below). General contact details of provider: https://edirc.repec.org/data/rikobjp.html .

    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.