討論串[問題] SAS資料處理
共 19 篇文章

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者a15321 (a15321)時間17年前 (2009/02/24 12:33), 編輯資訊
0
0
0
內容預覽:
感謝,但我跑出來是錯誤訊息 @@. ERROR: A subquery cannot select more than one column.. ERROR: A Composite expression (usually a subquery). is used incorrectly in an
(還有89個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者liton (歐吉桑留學生)時間17年前 (2009/02/24 01:55), 編輯資訊
0
0
0
內容預覽:
Proc Sql;. create table group as. select group, type. from source. where group in. (select group, count(distinct type) from source. group by group. ha
(還有10個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者a15321 (a15321)時間17年前 (2009/02/24 01:33), 編輯資訊
0
0
0
內容預覽:
請教各位前輩,我有一組資料. group type 其他變數.... 100 A. 100 B. 101 A. 101 A. 101 B. 101 B. 102 A. 103 B. 104 A. 104 A. group有上萬組,type只有兩種,. 我想把資料整理成只剩下,「同一個group同時有
(還有187個字)

推噓4(4推 0噓 2→)留言6則,0人參與, 最新作者tew (咖啡王子)時間17年前 (2009/02/08 23:28), 編輯資訊
0
0
0
內容預覽:
既然妳一定要用這種方法. proc sort data=file;by sales;. run;. data file;. set file nobs=xx;. if _n_/xx<=0.2 then Gsale=1;. if 0.2<_n_/xx<=0.4 then Gsale=2;. ...;.

推噓3(3推 0噓 2→)留言5則,0人參與, 最新作者chinghsi (Where are you)時間17年前 (2009/02/08 14:15), 編輯資訊
0
0
0
內容預覽:
我的資料可以簡化的如下顯示:. ID Name Year Sales Control. 1311 A 200712 12345 1.25. 1311 A 200612 9999 1.26. 1477 B 200712 95863 1.27. 1477 B 200612 5555 1.28. 2544
(還有1227個字)