本人做event study中,参考princeton大学给的代码整理数据,但是运行到下面的时候总是提示错误,
源代码如下:
forvalues i=1(1)r(max){/*note:replace N with the highest value of id*/
list id Stkcd if id=='i' & dif==0
reg Dretwd Mkttrt if id=='i' & estimation_window==1
predict p if id=='i' /*此处i是什么???*/
replace predicted_return=p if id=='i' & event_window==1
drop p
}
错误提示:
invalid syntax
r(198);
检查了好多遍,实在不知道问题出在哪里。。。/(ㄒoㄒ)/~~谢谢各位了!~



雷达卡





京公网安备 11010802022788号







