使用 spwmatrix 命令构造分块对角矩阵,在 stata 中输入命令语句:
. use C:\Users\IBM\Desktop\Panel\Northeast_panelgdp.dta, clear //请问Northeast_panelgdp.dta是指我需要做实证存放X和Y的文件么?
. tsset regioncode time # 或者: xtset #
. spwmatrix import using Northeast.gal,wname(wpanel1) xtw(3) xport(wpanel1xt,txt) //Northeast.gal这个文件是经纬度的文件么,还是已经生成的0-1矩阵文件,看help文件,txt格式和dta格式的文件应都是可以用的,但是stata一直报错“file 100.raw not found”
|