Creating spatial weight matrix using Geoda and Stata
先使用Geoda生成gal文件,然后使用下面的stata commands来生成空间加权矩阵文件: ssc install spwmatrix * remove the first and last lines of the txt file spwmatrix import using spwmatrix import using C:\Users\*USER*\Desktop\Tutorial\Weights_file.gal, wname(weights)