請問有關SAS的問題
我想利用 SAS 讀取 excel 資料做logistic regression
以下是我的 程式碼
proc import datafile="C:\94for_model.xls" out=model replace;
run;
proc standard data=model mean=0 std=1 out=stdout;
var all category number lnall cc d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52
d53 d55 d56 d57 gov01_2 gov02_2 gov03_2 gov01_3 gov02_3 gov03_3 C2_original
C3 C4 C5 C6 CA2 C12 C13 C14 C15 C16 C17 C18 C19;
proc logistic data=stdout OUTEST=betas covout descending;
model category=all number lnall cc d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52
d53 d55 d56 d57 gov01_2 gov02_2 gov03_2 gov01_3 gov02_3 gov03_3
C2_original C3 C4 C5 C6 CA2 C12 C13 C14 C15 C16 C17 C18 C19;
/ctable SELECTION=s slentry=0.15 slstay=0.15 rsq lackfit details ;
output out=pred p=phat lower=lcl upper=ucl;
run;
proc print data=betas;
run;
然後會出現以下錯誤-
--
86 /ctable SELECTION=s slentry=0.15 slstay=0.15 rsq lackfit details ;
-
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
87 output out=pred p=phat lower=lcl upper=ucl;
--
想要請教各位 是哪邊出了問題? 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.108.57
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):