在Stata 15中,推出了最新的空间计量官方命令,均以sp开头,表示 spatial data),可以处理横截面与面板形式的空间数据。本文主要为大家介绍空间计量命令。
一、命令汇总
1、Preparing data/数据准备
zipfile:Compress and uncompress files in zip archive format,表示压缩和解压缩zip存档格式的文档
spshape2dta:Translate shapefile to Stata format表示可以将 shapefile 文件转换为 Stata 格式
spset:Declare data to be Sp spatial data声明空间数据
spbalance:Make panel data strongly balanced使面板数据具有很强的平衡性
spcompress:Compress Stata-format shapefile压缩数据成stata格式的shapefile
2、Looking at data/观测数据
grmap:Graph choropleth maps绘制等值区域图
spdistance:Calculator for distance between places计算区域之间距离
3、Setting the spatial weighting matrix/设置空间权重矩阵
spmatrix:Create, manipulate, and import/export weighting matrices表示创建操作管理、导入和导出空间权重矩阵
spgenerate:Generate spatial lag variables生成空间滞后变量
4、Fitting