Spatial Autoregressive Models Reference Manual

Publisher: Stata Press
Copyright: 2023
ISBN-13: 978-1-59718-398-7
Pages: 225
Suggested citation

StataCorp. 2023. Stata 18 Spatial Autoregressive Models Reference Manual. College Station, TX: Stata Press.

Supplemental materials

Table of contents
Intro Introduction to spatial data and SAR models
Intro 1 A brief introduction to SAR models
Intro 2 The W matrix
Intro 3 Preparing data for analysis
Intro 4 Preparing data: Data with shapefiles
Intro 5 Preparing data: Data containing locations (no shapefiles)
Intro 6 Preparing data: Data without shapefiles or locations
Intro 7 Example from start to finish
Intro 8 The Sp estimation commands

estat moran Moran's test of residual correlation with nearby residuals

grmap Graph choropleth maps

spbalance Make panel data strongly balanced
spcompress Compress Stata-format shapefile
spdistance Calculator for distance between places
spgenerate Generate variables containing spatial lags

spivregress Spatial autoregressive models with endogenous covariates
spivregress postestimation Postestimation tools for spivregress

spmatrix Categorical guide to the spmatrix command
spmatrix copy Copy spatial weighting matrix stored in memory
spmatrix create Create standard weighting matrices
spmatrix drop List and delete weighting matrices stored in memory
spmatrix export Export weighting matrix to text file
spmatrix fromdata Create custom weighting matrix from data
spmatrix import Import weighting matrix from text file
spmatrix matafromsp Copy weighting matrix to Mata
spmatrix normalize Normalize weighting matrix
spmatrix note Put note on weighting matrix, or display it
spmatrix save Save spatial weighting matrix to file
spmatrix spfrommata Copy Mata matrix to Sp
spmatrix summarize Summarize weighting matrix stored in memory
spmatrix use Load spatial weighting matrix from file
spmatrix userdefined Create custom weighting matrix

spregress Spatial autoregressive models
spregress postestimation Postestimation tools for spregress

spset Declare data to be Sp spatial data
spshape2dta Translate shapefile to Stata format

spxtregress Spatial autoregressive models for panel data
spxtregress postestimation Postestimation tools for spxtregress
Combined author index
Combined subject index