[R-sig-eco] Function predict

2010-07-07 Thread Manuel Spínola
Dear list members, I am fitting a logistic regression with 5 explanatory factors (which I converted to factors): mod6 = glm(condicion ~ iluminacion + animales + cielo.raso + piso + paredes, family=binomial, data=reglog) I want to obtain the predicted probabilities and the se using the

Re: [R-sig-eco] Function predict

2010-07-07 Thread Luciano Selzer
Hi Manuel, your problem is that the new variables you created are of numeric type, while the model was fitted using factor. So the fix is to convert the new variables to factors so the type matchs Luciano 2010/7/7 Manuel Spínola mspinol...@gmail.com Dear list members, I am fitting a logistic