Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Logistic Regression not giving categorical output

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles