討論串[問題] SAS砍遺漏值與算公司數?
共 5 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者wabicone (我是孩子王)時間16年前 (2009/05/12 01:47), 編輯資訊
0
0
0
內容預覽:
抱歉借題發揮一下. b大的這個sql指令好像跑不太出來. 出現error:第二個select不能選兩個column. 有別的寫法嗎?. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.119.202.163.

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者KnightX (........)時間16年前 (2009/04/29 16:56), 編輯資訊
0
0
0
內容預覽:
proc sql;. create table abc2 as. select *. from abc. where code not in (. select code. from abc. where roe = .. );. select count(distinct code) as 公司數
(還有153個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者west1996 (焦了六年變脆了)時間16年前 (2009/04/29 13:59), 編輯資訊
0
0
0
內容預覽:
proc freq data=XXX nlevels;. tables OOO /nprint;. run;. note: OOO填入你要的變數,可以多個. nlevels是要求顯示每個變數的level數. nprint是不要顯示freq的表格. --. 發信站: 批踢踢實業坊(ptt.cc).

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者bugle (低點)時間16年前 (2009/04/29 07:17), 編輯資訊
0
0
0
內容預覽:
proc sql;. create table work.temp as. select *. from abc. where code in (. select code, sum(case when roe = . then 1 else 0 end) as cnt. from abc. gro

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者iinnttww (必勝客)時間16年前 (2009/04/29 00:41), 編輯資訊
0
0
0
內容預覽:
有兩個SAS問題想請教. (1)我的資料是屬Panel Data,假若某家公司有一年資料為遺漏值,. 我該如何把整家公司刪掉,以保持我的資料Balance??. ex:. Data abc;. input code year roe;. cards;. 1101 1999 0.2. 1101 200
(還有273個字)
首頁
上一頁
1
下一頁
尾頁