stata中怎么是生成spmat文件
推荐回答
使用spmat相关命令,import可从txt文件中导入空间权重矩阵,即spmat对象, dta从.dta到spmat对象, putmatrix从mata到spmat对象。spmat import wedg usingwecon.txt //该命令可以生成以wedg为名称的spmat权重文件spmat savewecon using wecon.spmat //该命令可以将生成的spmat权重文件存储为 wecon.spmat spmat use wedg using wedg.spmat //该命令可以打开spmat权重文件