討論串[問題] SAS寫到一半卡住了~請大大們指點一下.. …
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者tew (咖啡王子)時間17年前 (2008/06/01 00:25), 編輯資訊
0
0
0
內容預覽:
proc sort data=yourfile;by code year month;. run;. proc means noprint data=yourfile;. var ret mv;. by code year month;. output out=newfile mean=mret m

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者ayung0508 (阿勇就是我)時間17年前 (2008/06/01 00:17), 編輯資訊
0
0
0
內容預覽:
非常感謝您,B先進,小弟有測試出來. 但如前文小弟舉的例子中是只有一家公司code=2. 小弟手邊的data總共有1700多家code=1700. 請問我該如何把這程式修改成. 1.能以"每家"公司的月平均報酬率、月平均市值"來分類呢?. 2.以上程式只有三個變數,如果我想再把其他原來的變數襄入.

推噓1(1推 0噓 4→)留言5則,0人參與, 最新作者bugle (低點)時間17年前 (2008/05/31 22:00), 編輯資訊
0
0
0
內容預覽:
*假設 data name = xxx;. proc sql;. create table tmp/*tmp=你要的名稱*/ as. select put(date,yymmn6.) as date,. mean(ret) as ave_ret, mean(mv) as ave_mv. from x
(還有9個字)
首頁
上一頁
1
下一頁
尾頁