全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1529 0
2014-04-14
悬赏 10 个论坛币 未解决
Sir : Can you help me ?
    I want to use rolling regressing estimators (window=200) to predict the IBM's daily return of the next t+1,t+2,t+3,t+4 and
t+5 day.I hope results are below table:
start    date           f(t+1)        f(t+2)       f(t+3)         f(t+4)          f(t+5)
-----------------------------------------------------------------------------------------------
  1    16oct2003    y1_hat       y2_hat      y3_hat        y4_hat         y5_hat               
  2    17oct2003    y1_hat       y2_hat      y3_hat        y4_hat         y5_hat            
  3    20oct2003    y1_hat       y2_hat      y3_hat        y4_hat         y5_hat                     
  .             .               .              .               .                .                  .        
290  09dec2004   y1_hat       y2_hat       y3_hat       y4_hat         y5_hat
-----------------------------------------------------------------------------------------------

. use http://www.stata-press.com/data/r11/ibm
. tsset t
  time variable: t, 1 to 494
  delta: 1 unit
. generate ibmadj = ibm - irx
. generate spxadj = spx - irx
. rolling _b _se, window(200) saving(betas, replace) keep(date): regress ibmadj spxadj
. use betas, clear
. sort date
. list in 1/295, abbrev(10)

--------------------------------------------------------------------------
PS :The code cited on page 253 from "STATA TIMESERIES REFERENCE MANUAL RELEASE 11".
Thanks.


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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