[程式] 利用SAS輸出特定資料

看板Statistics作者 (jola)時間14年前 (2011/05/10 15:17), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/2 (看更多)
[軟體程式類別]:SAS [程式問題]:資料處理、迴歸 [軟體熟悉度]: 低(1~3個月) [問題敘述]: 目前碰壁的問題有兩個,想請明白的大大們指點一二, 謝謝好心人~ M(_ _)M 1. 目前在執行SAS裡proc logistic 簡單線性迴歸的過程, 希望得到參數估計beta1、其標準誤 與 wald 卡方檢定量三個特定的值。 原本是利用 proc print,但無法輸出wald 卡方檢定量的值,應該怎麼辦? 且輸出的 _LINK_ _TYPE_ _STATUS_並不需要,是否有指令可以刪去呢? 2. 想要利用 proc export輸出檔案成excel檔卻不斷出現 「ERROR: FILE= or TABLE= is required and must be specified.」的錯誤。 由於要輸出的檔案很多個, 使用手動輸出耗時甚多, 想請問有沒有辦法能夠一次解決這個問題 (程式檔入下)。 [程式範例]: data tts; infile "c:\zzz1.txt"; input w x y n; proc logistic data=tts outest=tts1_1 covout; model y/n=x/link=probit ; by w; run; proc print data=tts1_1 ; run; proc export data=work.tts1_1; outfile="C:\tts1_1.xls"; DBMS=EXCEL REPLACE; SHEET="tts1_1"; run; ----------------------------------------------------------------------------- ※ 其中 zzz1檔的資料 部份截取如下 1 1 10 10 1 2 10 10 1 3 10 10 1 4 10 10 1 5 10 10 1 6 10 10 1 7 10 10 1 8 10 10 1 9 10 10 1 10 10 10 1 11 10 10 1 12 10 10 1 13 10 10 1 14 10 10 1 15 10 10 1 16 9 10 1 17 5 10 1 18 8 10 1 19 4 10 1 20 2 10 2 1 10 10 2 2 10 10 2 3 10 10 2 4 10 10 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.134.117.201

05/11 10:51, , 1F
(1)請愛用ods output (2)proc export寫錯,請去翻手冊
05/11 10:51, 1F

05/11 13:27, , 2F
ods output快很多
05/11 13:27, 2F

05/13 02:17, , 3F
謝謝:)
05/13 02:17, 3F
文章代碼(AID): #1DoEQQ_Z (Statistics)
文章代碼(AID): #1DoEQQ_Z (Statistics)