全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1221 0
2017-03-13
求助,我在用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,求助大神怎么办,很急

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群