[問題] ERROR: All observations have the same response

看板Statistics作者 (歐吉桑留學生)時間13年前 (2010/12/10 17:10), 編輯推噓2(203)
留言5則, 3人參與, 最新討論串1/1
最近用EG在跑Logistic 自變數(A)是連續數字型式 應變數(DF)是文字模式 有"D"和 空值兩種結果 PROC LOGISTIC DATA=SAMPLE; MODEL D=A RUN; 結果出現 ERROR: All observations have the same response. No statistics are computed. 但是如果將DF中 "D"->0 ""->0 結果又可以跑了 請問有人遇過這種狀況嗎? 還是EG秀斗了? (最近我的EG出包率相當高..) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.71.218.254

12/10 17:44, , 1F
加上response的指令 可能比較好 就能確實區分 D 和空值
12/10 17:44, 1F

12/10 17:48, , 2F
我本來是加上(event="D")我本來泵陵
12/10 17:48, 2F

12/14 14:16, , 3F
論壇上問到了:You need to change the null values to
12/14 14:16, 3F

12/14 14:16, , 4F
omething, otherwise it ignores these obs.
12/14 14:16, 4F

12/15 12:19, , 5F
長知識,謝謝
12/15 12:19, 5F
文章代碼(AID): #1D0Uvip5 (Statistics)