作者cropcircles (神秘的麦田圈)
看板Statistics
标题[程式] SAS-logistic regression
时间Sun Apr 22 20:07:53 2012
[软体程式类别]:
请填入软体程式类别 例如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
1F:推 tew:iteration的次数不够多 SAS还没算到收敛值就停了 04/22 20:29
2F:→ tew:所以只能给你跑到最後一次的结果 请修改iteration的次数 04/22 20:29