RIEB Discussion Paper Series No.2025-03

RIEB Discussion Paper Series No.2025-03

Title

Testing for Spatial Autocorrelation in Stata

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.

Keywords

Moransi; Moran's I; Global indicators of spatial association; Local indicators of spatial association; Spatial lag

JEL Classification

C87

Inquiries

Keisuke KONDO
Research Institute of Economy, Trade and Industry
Research Institute for Economics and Business Administration
Kobe University
Rokkodai-cho, Nada-ku, Kobe
657-8501 Japan
Phone: +81-78-803-7036
FAX: +81-78-803-7059

ENGLISH