Re: [R] about family=binomial in glm funtion

2018-04-14 Thread Duncan Murdoch
On 14/04/2018 5:33 PM, Zhang Wilson wrote: Hei, I just wonder the use of family=binomial in glm function. As I learned from book (e.g. Andy Field) that logistic regression (binary logit) can use glm funtion with family = binomial. Here the y is a factor variable (e.g. value = 1 or 2).

[R] about family=binomial in glm funtion

2018-04-14 Thread Zhang Wilson
Hei, I just wonder the use of family=binomial in glm function. As I learned from book (e.g. Andy Field) that logistic regression (binary logit) can use glm funtion with family = binomial. Here the y is a factor variable (e.g. value = 1 or 2). But I have also seen i many other cases, same