老师请帮我解答一下,我就是全部选中循环体运行的,结果也出错了,好像是第二句得的命令有错 那个1 有些问题。请问应该怎样改呢?@voodoo
forvalues i=1(1)`r(max)'{
2. 1 id company_id if id==`i'&dif==0
3. reg ret market_return if id==`i'& estimation_window==1
4. predict p if id==`i'
5. replace predicted_return=p if id==`i'&event_window==1
6. drop p
7. }
unrecognized command: 1 invalid command name
r(199);