本人小白。。
跟着
https://bbs.pinggu.org/thread-4677437-1-1.html 这个帖子在尝试计算Moran‘s I值,
但和楼主但同学一样是mac系统苹果电脑,建立并存储的W.dta文件放在安装文件夹里也无法调取。。
spatgsa A, weights(Wstd) moran
Matrix Wstd does not exist
尝试了楼主说的
”是权重矩阵的数据粘贴进stata之后,直接生成矩阵:spatwmat ,name(W)“这一步,
但会提示:
You must specify both x- and y-coordinates using options
xcoord(varname) and ycoord(varname)
小白不懂啊。。
如这张图,目前我已经有了一个标准化后的相邻矩阵啦,接下来要怎么推动调用这个dta呢。。
求助论坛上的各位大佬!
感恩!!!