[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 func

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 > Dear list members, > > I am fitting a logistic regression with 5

Re: [R-sig-eco] Function predict

2010-07-09 Thread Gavin Simpson
On Wed, 2010-07-07 at 20:44 -0300, Luciano Selzer wrote: > 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 It may need more than that; not tested

Re: [R-sig-eco] Function predict

2010-07-09 Thread Kay Cecil Cichini
...ben bolker's glmm wiki has several examples (in faqs and "owl"-example) how to get model predictions and se's by the use of the model- and var/covar-matrices. best, kay and Zitat von Gavin Simpson : On Wed, 2010-07-07 at 20:44 -0300, Luciano Selzer wrote: Hi Manuel, your problem is t