I used logistic regression (stepwise selection) using SAS for solving the Titanic problem listed in Kaggle.
I have got stuck in the model fitting part as I am getting errors. I think its because sex is binary variable in my dataset. This was the code I used for fitting the model
data titanic.test; set titanic.test; survived=2.3252 -1.1281*Pclass-2.7404*sex-0.0363*Age-0.3621*SibpSp; predicted=exp(survived)/(1+exp(survived)); run;
Please suggest a correct/better way to do this.