[程式] sas跑lag迴圈

看板Statistics作者 (冷..)時間14年前 (2009/12/29 15:09), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
我想跑lag的迴圈 譬如lag1 lag2 一直到lag60 下面是我的語法 data r; set r111; array l(60) l1-l60; do i=1 to 60; l{i}=lagi(gret); end; run; 我知道直接打lagi是錯的 但我試不出可以跑的寫法 煩請各位高手幫忙了 ^^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.46.201.197
文章代碼(AID): #1BEQiiJD (Statistics)
文章代碼(AID): #1BEQiiJD (Statistics)