I have plotted the decision boundary:
for my logistic regression but I don't clearly understand how to interpret it. How do I know on which side of the boundary y=1 and on which y=0?
Here is my code:
model <- glm (left ~ satisfaction_level + time_spend_company, family = binomial(link = 'logit'), data = data)
coefs = coef(model)
summary(model)
(x = c(min(data[,1])-2, max(data[,1])+2))
(y = c((-1/coefs[3]) * (coefs[2] * x + coefs[1])))
lines(x, y, col="black", lwd=2)
Can someone explain?
Thanks!
P.S. I have use the Kaggle HR data set with split:
data <- HR.2 [1:12000,]
test.data <- HR.2 [12001:14999,]