全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
872 2
2013-05-02
set more on /* this command just keeps stata from pausing after each screen of output */

gen predicted_return=.
egen id=group(group_id)
/* for multiple event dates, use: egen id = group(group_id) */
forvalues i=1(1)615 { /*note: replace N with the highest value of id */
        l id group_id if id==`i' & dif==0
         reg biandong market if id==`i' & estimation_window==1
        predict p if id==`i'
        replace predicted_return = p if id==`i' & event_window==1
        drop p
}

事件研究法中的代码,请高人指点l id group_id if id==`i' & dif==0这句代码的意思

二维码

扫码加我 拉你入群

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

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

全部回复
2013-5-2 22:35:08
list id group_id if id==`i' & dif==0
二维码

扫码加我 拉你入群

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

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

2013-5-3 19:00:58
dxystata 发表于 2013-5-2 22:35
list id group_id if id==`i' & dif==0
甚是感谢
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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