我在excel里面编辑好了权重矩阵,保存为.dta之后,打开需要分析的数据,然后用spatwmat调入权重矩阵,
spatwmat using E:\stata11\ado\personal\land_finance\wmprov.dta, name(wmprov)
显示为:
*---------------------------------------------*
The following matrix has been created:
1. Imported binary weights matrix wmprov
Dimension: 186x186
*---------------------------------------------*
然后做GS2SLS,用
gs2slsxt y x1 x2 x3, nc(186) wmfile(wmprov) mfx(lin) test fe
然后就报错!
*---------------------------------------------*
file wmprov.dta not found