Re: [R] logistic regression - what is being predicted when using

2010-02-18 Thread Ted Harding
On 18-Feb-10 18:58:57, Dimitri Liakhovitski wrote: > Dear gurus, > I've analyzed a (fake) data set ("data") using logistic regression > (glm): > > logreg1 <- glm(z ~ x1 + x2 + y, data=data, family=binomial("logit"), > na.action=na.pass) > > Then, I created a data frame with 2 fixed levels (0 and

[R] logistic regression - what is being predicted when using predict - probabilities or odds?

2010-02-18 Thread Dimitri Liakhovitski
Dear gurus, I've analyzed a (fake) data set ("data") using logistic regression (glm): logreg1 <- glm(z ~ x1 + x2 + y, data=data, family=binomial("logit"), na.action=na.pass) Then, I created a data frame with 2 fixed levels (0 and 1) for each predictor: attach(data) x1<-c(0,1) x2<-c(0,1) y<-c(0,1