I am attempting to run a binary logistic regression using a number of categorical and continuous variables. However, every time I run the analysis the classification table predicts all cases to fall into one category of my outcome variable (e.g. males=1 and females=2, all predicted to be males). In this example, percentage correct for males is reported to be 100% and 0% for females. It does this no matter which binary variable I use as my dependent variable and no matter how they are coded (e.g. 1 and 2, 0 and 1).
I'm new to logistic regression so any help would be much appreciated!
LOGISTIC REGRESSION VARIABLES sex
/METHOD=ENTER age canonpre
/CONTRAST (canonpre)=Indicator
/SAVE=PRED PGROUP COOK LEVER DFBETA RESID
/CLASSPLOT
/CASEWISE OUTLIER(2)
/PRINT=GOODFIT ITER(1) CI(95)
/CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).
#SPSSStatistics#Support#SupportMigration