討論串[問題] SAS一個樣本處理的問題
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者liton (歐吉桑留學生)時間17年前 (2008/12/18 23:09), 編輯資訊
0
0
0
內容預覽:
create table statistics as. select month,industry,count(*), AVG(dummy). from 你的資料. group by month, industry;. quit;. ----. 1.上述筆數,平均數一次解決. 2.dummy如果是文

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者tew (咖啡王子)時間17年前 (2008/12/18 16:01), 編輯資訊
0
0
0
內容預覽:
proc sort data=xxx;. by month industry;. run;. proc means data=xxx;. var dummy; by month industry;. output out=xx mean=dummy_ratio;. run;. 這樣妳就得到比率了.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者kenshin528 (成立奧凶帝國!!)時間17年前 (2008/12/18 13:25), 編輯資訊
0
0
1
內容預覽:
假設妳每個月的檔名教作XXX1、XXX2、XXX3~~XXX12. 那你可以寫. %do i = 1 to 12;. proc freq data=XXX&i ;. talbes dummy ;. by industy ;. run ;. %end;. --. (C)lass 【 分組討論區 】.
(還有63個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者chenshinwei (陳小偉)時間17年前 (2008/12/18 11:39), 編輯資訊
0
0
0
內容預覽:
假設有一個資料如下:. id industy dummy ..... 1 001 1. 2 001 0. 3 001 1. 4 002 1. 5 002 1. 6 003 0. 7 003 0. 請問各位,我要跑出的結果是看. 各industry中其dummy的比例。. 如001這個產業中,dumm
(還有154個字)
首頁
上一頁
1
下一頁
尾頁