[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


Hi

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 
glm.fit(x,y)...


thanks for a hint

christoph

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

$arch
[1] "i686"

$os
[1] "linux-gnu"

$system
[1] "i686, linux-gnu"

$status
[1] ""

$major
[1] "1"

$minor
[1] "9.1"

$year
[1] "2004"

$month
[1] "06"

$day
[1] "21"

$language
[1] "R"




More information about the R-help mailing list