forvalues i=1(1)126{
qui reg ret marketreturn if (id==‘i’ & estimation_window==1)
predict p if id==‘i’
replace predicted_return = p if (id==‘i’ & event_window==1)
drop p
}
stata 报错说
unrecognized command: 2. invalid command name
不知道是怎么回事,求大神帮看看,谢谢!