[程式] SAS-logistic regression

看板Statistics作者 (神秘的麥田圈)時間12年前 (2012/04/22 20:07), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/2 (看更多)
[軟體程式類別]: 請填入軟體程式類別 例如SAS、SPSS、R、EVIEWS...等 SAS [程式問題]: 資料處理、迴歸、敘述統計、logistic、probit...等 logistic [軟體熟悉度]: 請把以下不需要的部份刪除 低(1~3個月) [問題敘述]: 我的logistic regression跑出來會出現下面這幾行, 請問是因為樣本不夠大嗎?(我的樣本有270筆)還是其他原因造成的? WARNING: There is a complete separation of data points. The maximum likelihood estimate does not exist. WARNING: The LOGISTIC procedure continues in spite of the above warning. Results shown are based on the last maximum likelihood iteration. Validity of the model fit is questionable. 有查到solution: 在model下加上exact x1 x2 / estimate=both; 但還是跟原本一樣......不知是否有人知道為什麼 可以幫我解答,謝謝。 [程式範例]: proc logistic data=a descending; model BIG10=PRETRADE TRADE PRIVATE LNTA GROWTH ROA LEV ARINV CLISTB CLISTH CLISTF OPINION INDE OWN ind2 ind3 ind4 ind5 ind6 ind7 ind8 ind9 ind10 ind11 ind12 ind13 ind14 ind15 ind16 ind17 ind18 ind19 ind20 ind21 ind22 yr2 yr3 yr4 yr5 yr6; exact PRETRADE TRADE PRIVATE LNTA GROWTH ROA LEV ARINV CLISTB CLISTH CLISTF OPINION INDE OWN ind2 ind3 ind4 ind5 ind6 ind7 ind8 ind9 ind10 ind11 ind12 ind13 ind14 ind15 ind16 ind17 ind18 ind19 ind20 ind21 ind22 yr2 yr3 yr4 yr5 yr6/ estimate=both; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.0.145

04/22 20:29, , 1F
iteration的次數不夠多 SAS還沒算到收斂值就停了
04/22 20:29, 1F

04/22 20:29, , 2F
所以只能給你跑到最後一次的結果 請修改iteration的次數
04/22 20:29, 2F
文章代碼(AID): #1Fa_ISnz (Statistics)
文章代碼(AID): #1Fa_ISnz (Statistics)