急求各位大虾帮助,我做logsitic回归分析时,发现常数项没有通过,然而在优势比中需要常数项,如果剔除那么如何解释优势比?
data wxc;
input sex$ xl$ zt$ count @@;
dsex=(sex='m');
xla=(xl='a');
xlb=(xl='b');
cards;
m a zz 281 m a not 412
m b zz 1496 m a not 2131
m c zz 2364 m a not 3064
f a zz 396 f a not 477
f b zz 2745 f b not 3269
f c zz 4909 f c not 5337
;
proc logistic;
freq count;
model zt=dsex xla xlb/ scale=none aggregate;
output out=results p=yhat;
run;
data results;
set results;
if yhat ge .316 then newgp=1; else newgp=0;
proc freq data=results;
table zl*newgp/ nopercent norow nocol;
run;
以上是我的程序,我放宽了条件还是没通过,急求各位大虾的帮助。万分的感激!!!!!
本文来自: 人大经济论坛 详细出处参考:
http://www.pinggu.org/bbs/viewthread.php?tid=813834&page=1&from^^uid=730061