討論串[問題] sas算平均
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者anniecs ( ￾ ￾ )時間12年前 (2013/04/15 01:59), 編輯資訊
0
0
0
內容預覽:
/*資料輸入*/. data test;. input a b @@;. cards;. 1 0 1 0 1 1. 2 1 2 0 2 1. ;. /*計算第1層平均*/. proc sql;. create table group_mean as. select a, mean(b) as gro
(還有57個字)

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者anovachen (囧)時間12年前 (2013/04/14 15:54), 編輯資訊
0
0
0
內容預覽:
↑看不太懂這句話的意思...data test;. input a b @@;. cards;. 1 0 1 0 1 1. 2 1 2 0 2 1. ;. run;. proc means data=test;class a;var b;output out=avg1 mean=avg; run;.
(還有266個字)

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者mono1023 (阿沛)時間12年前 (2013/04/14 14:46), 編輯資訊
0
0
0
內容預覽:
我的資料格式如下. a b. 1 0. 1 0. 1 1. 2 1. 2 0. 2 1. a是id b是數值. 我想要各自計算a為1時的平均值以及2時的平均值. 最後再加總起來計算算數平均值. 請問該如何寫程式碼?. 我只會proc means. var b. by a. 但好像只能算各自的. 新手
首頁
上一頁
1
下一頁
尾頁