求助,我在用stata做event study根据http://dss.princeton.edu/online_ ... ata/eventstudy.html这个网站上来的,在求ar的时候stata总是提示错误r(2000)
原来的命令是
set more off /* this command just keeps stata from pausing after each screen of output */gen predicted_return=.egen id=group(company_id) /* for multiple event dates, use: egen id = group(group_id) */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} 我替换了n,也用的是dofile,求助大神怎么办,很急


雷达卡



京公网安备 11010802022788号







