epoh 发表于 2012-6-5 19:48 
你要先载入数据
file\open\...xxx.xls
老师我用你给的EC3SLS模型分析了一段数据,但是在结果里出现了一个warning(WARNING in command 67 Procedure THSLS: At least one coefficient in the table above could not be estimated due to singularity of the data or derivatives.)
而67列命令符为3SLS(inst=Xs) eqs;老师认为是哪个地方修改错了麽,还是因为数据本身的原因?中间修改过的部分为
const N,46 T,5;
set NT=N*T;
? Create the lists and matrices for the model to be estimated
? XYs, XY = all variables, including dependent, RHS, and instruments
? Xs, = instruments (don't include C)
? eqs, equations to be estimated (FRMLs; declare the PARAMs as usual)
? Fill in lists here
list XYs y1 y2 y3 z1 z2 x1 x2 x3;
list Xs z1 z2 x1 x2 x3;
list eqs eq1 eq2 eq3;
frml eq1 y1 = ay2*y2 + ay3*y3 + ax1*x1 + ax2*x2;
param ay2 ay3 ax1 ax2;
frml eq2 y2 = by1*y1 + by3*y3 + bx3*x3 + bz1*z1;
param by1 by3 bx3 bz1;
frml eq3 y3 = cy1*y1 + cy2*y2 + cz1*z1 + cz2*z2;
param cy1 cy2 cz1 cz2;