1
$\begingroup$

I have data that I don't believe is linearly separable. See below;

X = 761, 700, 3488, 555, 2784, 1336, 380

Y = 0, 1, 1, 0, 1, 1, 0

My belief is that because of the first two observations I shouldn't have linearly separable data. The error arises when I run:

glm(Y~X,family=binomial(link='logit'),data=data)

THanks in advance!

$\endgroup$

1 Answer 1

0
$\begingroup$

Good news. I get no such error and you're correct that the data are not linearly separable.

x=c(761,700,3488,555,2784,1336,380)
y=c(0,1,1,0,1,1,0)
f=glm(y~x,family=binomial)
$\endgroup$
1
  • $\begingroup$ Odd... I'll clear my variables and see what I screwed up haha. No clue why I had the issue. $\endgroup$
    – Nicklovn
    Mar 13, 2019 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.