Re: [程式] SAS-logistic regression
※ 引述《cropcircles (神秘的麥田圈)》之銘言:
: [問題敘述]:
: 我的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;
: 但還是跟原本一樣......不知是否有人知道為什麼 可以幫我解答,謝謝。
Complete Seperation...舉個例子來說好了
OBS A B
1 5 0
2 5 0
3 5 0
4 5 0
5 -5 1
6 -5 1
7 -5 1
用A來預測B出現1的機率基本上是沒意義的
加些option沒太大意義 SAS頂多能幫你Quasi_Complete Separation
建議檢查你的資料比較保險
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.167.171.18
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):