forvalues i=1(1)N { /*note: replace N with the highest value of id */
l id company_id if id==`i' & dif==0
reg ret market_return if id==`i' & estimation_window==1
predict p if id==`i'
replace predicted_return = p if id==`i' & event_window==1
drop p
}
普林斯顿大学关于stata用于事件研究中的文章里的一段代码,运行总是不通过,
显示
invalid syntax
r(198);
已经折腾快两小时了,请高手指点啊!


雷达卡




京公网安备 11010802022788号







