[程式] sas跑rolling殘差

看板Statistics作者 (冷..)時間14年前 (2010/02/03 21:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
我想要跑daily rolling regression 並且需要每天的殘差值 以下是我打的code %macro residual; %do x=252 %to 4533; data=level; set=vix; if &x-251<= t <= &x; per &x; proc reg data=level noprint outest=level R=res; model variance=t_30; quit; proc append base=vixlevel data=level; %end; %mend residual; %residual; 我跑不出個結果 請個位高手提點一下哪裡有錯 謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.46.200.123
文章代碼(AID): #1BQO0vag (Statistics)
文章代碼(AID): #1BQO0vag (Statistics)