@rahul.ranjan wrote:
Hi All,
I am new to Analytics. I have tried using Logistic Regression for the first time for Loan Prediction problem
When i am trying to predict the Loan_Status variable i am getting the probability after using Logistic regression which is continuous.
I thought i would be getting categorical output like 0 and 1. What i am missing here.Is anything more i have to do .
I used
mylogit<- glm(formula=Loan_Status~.,data = train,family = binomial)
test$Loan_Status<-predict(mylogit,newdata = test,type="response")
Any help would be appreciated.
Thanks in advance.
Rahul
Posts: 2
Participants: 2