[R] error on predict

From: Michele Santacatterina <miksanta_at_gmail.com>
Date: Wed, 02 Jul 2008 16:55:09 +0000


Hi,

i have this glm:
shuttle.glm.test <-
glm(cbind(r,m-r)~temperature,family=binomial,data=shuttle)

and when i try to find a probability of var r (with temperature=31 and pressure=200):

predict(shuttle.glm.test,data.frame(temperatura=31,pressure=200),type="response",se=T)

i have this error:

Warning message:
'newdata' had 1 rows but variable(s) found have 23 rows

why??

thanks.

Michele

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 02 Jul 2008 - 17:02:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 17:31:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive