[R] glm.fit and predict.glm: error ' no terms component'

Christoph Lehmann christoph.lehmann at gmx.ch
Wed Sep 29 16:04:37 CEST 2004


when I fit a glm by

	glm.fit(x,y,family = binomial())
and then try to use the object for prediction of newdata by:

	predict.glm(object, newdata)

I get the error:

Error in terms.default(object) : no terms component

I know I can use glm() and a formula, but for my case I prefer 

thanks for a hint


[1] "i686-pc-linux-gnu"

[1] "i686"

[1] "linux-gnu"

[1] "i686, linux-gnu"

[1] ""

[1] "1"

[1] "9.1"

[1] "2004"

[1] "06"

[1] "21"

[1] "R"

More information about the R-help mailing list